/*! yp_pc_enter-1.0.0 2016-10-11 14:10:51*/
function errorImg(a) {
    var b = "//mats.gtimg.com/www/coral2.0/images/g.gif";
    a.src = b, a.onerror = null
}
function ccskey() {
    var a = 2013, b = "", c = document.cookie;
    c.split(";");
    if (b = "wx" == YPlogin.logintype ? YPlogin.access_token : YPlogin.skey)for (var d = 0, e = b.length; d < e; d++)a += (a << 5) + b.charCodeAt(d);
    return 2147483647 & a
}
!function (a, b, c) {
    function d(a) {
        return a
    }

    function e(a) {
        return decodeURIComponent(a.replace(f, " "))
    }

    var f = /\+/g, g = a.cookie = function (f, h, i) {
        if (h !== c) {
            if (i = a.extend({}, g.defaults, i), null === h && (i.expires = -1), "number" == typeof i.expires) {
                var j = i.expires, k = i.expires = new Date;
                k.setDate(k.getDate() + j)
            }
            return h = g.json ? JSON.stringify(h) : String(h), b.cookie = [encodeURIComponent(f), "=", g.raw ? h : encodeURIComponent(h), i.expires ? "; expires=" + i.expires.toUTCString() : "", i.path ? "; path=" + i.path : "", i.domain ? "; domain=" + i.domain : "", i.secure ? "; secure" : ""].join("")
        }
        for (var l, m = g.raw ? d : e, n = b.cookie.split("; "), o = 0; l = n[o] && n[o].split("="); o++)if (m(l.shift()) === f) {
            var p = m(l.join("="));
            return g.json ? JSON.parse(p) : p
        }
        return null
    };
    g.defaults = {domain: "qq.com", path: "/", expires: 7}, a.removeCookie = function (b, c) {
        return null !== a.cookie(b) && (a.cookie(b, null, c), !0)
    }
}(jQuery, document), define("coral.config", function (a, b, c) {
    var d = {
        options: {
            homePageSize: 10,
            hotPageSize: 10,
            centerPageSize: 10,
            loadPageSize: 20,
            newsNum: 0,
            columSource: 1,
            columsubSource: 0,
            columCode: 1,
            columApi: 1,
            columLink: 1,
            columHot: 1,
            commentNumbers: "",
            popupInfo: "popClick",
            popupLink: "np-postlink",
            reportBtn: 1,
            siteName: "",
            film: 0,
            client: 0,
            $logoutTrigger: $("#loginOut"),
            fetchUrl: "//coral.qq.com/",
            $loginFlag: $("#loginFlag"),
            $loginBtn: $("#top_post_btn"),
            loginuin: 0,
            $top_textarea: $("#top_textarea"),
            $myCowComment: $("#myCowComment"),
            $myAllComment: $("#myAllComment"),
            huiyuan: 0,
            cmt_array: "",
            cmt_class: "np-tip-newpost1",
            cmt_content: "",
            yp_id: ""
        }, init: function () {
            var a = this.options;
            if (parent.registerCoralEvent)if (parent.registerCoralEvent.source && (a.columSource = parent.registerCoralEvent.source), parent.registerCoralEvent.subsource && (a.columsubSource = parent.registerCoralEvent.subsource), 0 != parent.registerCoralEvent.code && 1 != parent.registerCoralEvent.code || (a.columCode = parent.registerCoralEvent.code), parent.registerCoralEvent.ownStyle && $("head").append('<link href="' + parent.registerCoralEvent.ownStyle + '" rel="stylesheet" type="text/css" media="screen"/>'), parent.registerCoralEvent.listHiden && ($("#content").hide(), a.columApi = 0), parent.registerCoralEvent.commentNums && (a.homePageSize = parent.registerCoralEvent.commentNums), parent.registerCoralEvent.commentHotNums && (a.hotPageSize = parent.registerCoralEvent.commentHotNums), 0 == parent.registerCoralEvent.commentLink && (a.columLink = parent.registerCoralEvent.commentLink), 2 == parent.registerCoralEvent.commentLink && (a.columLink = parent.registerCoralEvent.commentLink), 0 == parent.registerCoralEvent.commentHot && (a.columHot = parent.registerCoralEvent.commentHot), 0 == parent.registerCoralEvent.popupInfo && (a.popupInfo = "popupInfoOff"), 0 == parent.registerCoralEvent.popupLink && (a.popupLink = "popupLinkOff"), 0 == parent.registerCoralEvent.reportBtn && (a.reportBtn = 0), parent.registerCoralEvent.site && (a.siteName = parent.registerCoralEvent.site, "video" == parent.registerCoralEvent.site && (a.huiyuan = 1)), parent.registerCoralEvent.site1 && (a.film = 0, a.huiyuan = 1), parent.registerCoralEvent.site2 && (a.client = 1), top.location.host.match("coral.qq.com")) {
                var b = top.location.host;
                null != b.match(/(\w+)\.coral\.qq\.com/) && (a.fetchUrl = "//" + b.match(/(\w+)\.coral\.qq\.com/)[1] + ".coral.qq.com/")
            } else void 0 != parent.registerCoralEvent.site && (a.fetchUrl = "//" + parent.registerCoralEvent.site + ".coral.qq.com/")
        }
    };
    c.exports = d
}), define("coral.base", function (a, b, c) {
    var d = {
        options: {$content: $("#content")}, FormatTime: function (a) {
            var b = new Date, c = b / 1e3 - a;
            if (c < 1)return "刚刚";
            if (c < 60)return Math.floor(c) + "秒钟前";
            if (c < 3600)return Math.floor(c / 60) + "分钟前";
            if (c < 86400)return Math.floor(c / 3600) + "小时前";
            if (c < 604800)return Math.floor(c / 86400) + "天前";
            var d = new Date(1e3 * a), e = d.getFullYear() + "/";
            return e += d.getMonth() + 1 + "/", e += d.getDate()
        }, EncodeHtml: function (a) {
            var b = "";
            return 0 == a.length ? "" : (b = a.replace(/&/g, "&gt;"), b = b.replace(/</g, "&lt;"), b = b.replace(/>/g, "&gt;"), b = b.replace(/ /g, "&nbsp;"), b = b.replace(/\'/g, "&#39;"), b = b.replace(/\"/g, "&quot;"), b = b.replace(/\n/g, "<br>"))
        }, SubString: function (a, b) {
            a = a || "";
            var c = /[^\x00-\xff]/g;
            if (a.replace(c, "mm").length <= b)return a;
            for (var d = Math.floor(b / 2), e = d; e < a.length; e++)if (a.substr(0, e).replace(c, "mm").length >= b)return a.substr(0, e) + "...";
            return a
        }, IframeHeight: function () {
            var a = $("#mainBody").height();
            $(parent.document.body).find("#commentIframe1").length ? $(parent.document.body).find("#commentIframe1").height(a) : $(parent.document.body).find("#commentIframe").height(a), parent.registerCoralEvent && parent.registerCoralEvent.iframeHeight && parent.registerCoralEvent.iframeHeight()
        }, UpdateTime: function () {
            var a = this.FormatTime, b = this.options;
            b.$content.find(".uptime").each(function () {
                $(this).html(a($(this).attr("date")))
            }), $("#my-message").find(".time").each(function () {
                $(this).html(a($(this).attr("date")))
            }), $("#my-notification").find(".post-time span").each(function () {
                $(this).html(a($(this).attr("date")))
            }), $("#hiddenCon").find(".uptime").each(function () {
                $(this).html(a($(this).attr("date")))
            })
        }, ConHeight: function (a, b) {
            var c = b || 3, d = $(".np-post .np-post-content p[data-height!=5]"), e = 24;
            $(".np-post .np-post-content").length && (/px/.test(d.css("line-height")) && (e = d.css("line-height").split("px")[0]), 2 == a && (d = $("#my-message-list .np-post .np-post-content[data-height!=5] p")), 3 == a && (d = $("#my-notification-list .np-post .np-post-content[data-height!=5]")), 5 == a && (d = $("#allComments .topIco .np-post-content[data-height!=5] p")), 6 == a && (d = $("#yp_box .np-post .np-post-content[data-height!=5] p")), 7 == a && (d = $(".content #allComments>ul>li>.np-post-body>.np-post-content[data-height!=5] p")), $(a).hasClass("np-post-content") && (d = $(a).find("p")), d.each(function (a, b) {
                $(this).attr("data-height", "5"), $(this).height() > e * c && !$(this).next(".spreadMoreBtn").length && ($(this).css({
                    height: e * (c - 1),
                    overflow: "hidden"
                }), $(this).parent().find(".upMoreBtn") ? ($(this).parent().find(".upMoreBtn").remove(), $(this).after('<a href="javascript:void(0)" class="spreadMoreBtn np-btn np-btn-spread" title="展开"><i class="np-icon np-icon-spread"></i></a><a title="收起" style="display:none" href="javascript:void(0)" class="upMoreBtn np-btn np-btn-spread np-btn-up"><i class="np-icon np-icon-spread"></i></a>')) : $(this).after('<a href="javascript:void(0)" class="spreadMoreBtn np-btn np-btn-spread" title="展开"><i class="np-icon np-icon-spread"></i></a><a title="收起" style="display:none" href="javascript:void(0)" class="upMoreBtn np-btn np-btn-spread np-btn-up"><i class="np-icon np-icon-spread"></i></a>'))
            }))
        }, BlueLine: function (a) {
            setTimeout(function () {
                $(a + ">.np-tip-newpost").animate({opacity: "0"}, 1e4), setTimeout(function () {
                    $(a + ">.np-avatar").animate({left: "0px"}, 400), $(a + ">.np-post-body").animate({"padding-left": "10px"}, 400), $(a).removeClass("blueflag")
                }, 8e3)
            }, 5e3)
        }, GetQueryString: function (a) {
            var b = new RegExp("(^|&)" + a + "=([^&]*)(&|$)"), c = window.parent.location.search.substr(1).match(b);
            return null != c ? unescape(c[2]) : null
        }
    };
    c.exports = d
}), define("coral.realtime", function (a, b, c) {
    var d = d || parent.cmt_id, e = a("coral.base"), f = a("coral.config"), g = a("coral.dom"), h = {
        options: {
            pfetchUrl: "//coral.qq.com/",
            $showNum: $("#showNum"),
            $commentTotleNum: $("#commentTotleNum"),
            $allComments: $("#tab1_allComments"),
            $tabFlag: !0,
            $realtimeComments: 0
        }, probeEvent: function () {
            var a = this.options, b = function () {
                a.$tabFlag ? $.ajax({
                        url: "//sync.coral.qq.com/t/" + d,
                        dataType: "jsonp",
                        jsonpCallback: "propNum",
                        success: function (c) {
                            c > a.$realtimeComments && 0 != c && (a.$realtimeComments = c, this.loadNew()), setTimeout(function () {
                                b()
                            }, 3e3)
                        },
                        error: function () {
                            setTimeout(function () {
                                b()
                            }, 3e3)
                        }
                    }) : setTimeout(function () {
                        b()
                    }, 3e3), e.UpdateTime()
            };
            b()
        }, loadNew: function () {
            var a = this, b = this.options;
            $.ajax({
                url: b.pfetchUrl + "article/" + d + "/sync?lastid=" + b.$showNum.data("maxID"),
                dataType: "jsonp",
                jsonpCallback: "newComment",
                timeout: 3e4,
                success: function (c) {
                    if (a.options.$nowDate = 1e3 * c.info.time, 0 == c.errCode && 0 != c.data.length) {
                        c.data.maxid && b.$showNum.data("maxID", c.data.maxid), $.each(c.data.commentid, function (a, c) {
                            if (0 == $("#comment_" + c.id).length) {
                                if (2 != c.checkstatus) {
                                    var d = b.$commentTotleNum.children("span").html();
                                    b.$commentTotleNum.children("span").html(parseInt(d) + 1), f.options.commentNumbers.html(parseInt(d) + 1)
                                }
                                if (0 == c.parent) {
                                    if (c.userinfo.userid != $.cookie("uid")) {
                                        $("#hiddenCon").prepend(g.creatHtml(c));
                                        var e = $("#hiddenCon li");
                                        $.each(e, function (a, b) {
                                            $(b).addClass("blueflag")
                                        })
                                    }
                                } else $.each(b.$allComments.find("li"), function (a, b) {
                                    if (c.userinfo.userid != $.cookie("uid") && "comment_" + c.parent == b.id) {
                                        if (void 0 == $("#" + b.id).data("num") && $("#" + b.id).data("num", 0), $("#comment_" + c.parent).hasClass("undis")) {
                                            var d = $("#comment_" + c.parent).parents("li:not(.undis):first");
                                            d.data("num", Number(d.data("num")) + 1);
                                            var e = d.data("num") + "条新回复", f = d.find(".post-footer:first>em.newcoment");
                                            f.html(e), f.show()
                                        } else {
                                            $("#" + b.id).data("num", Number($("#" + b.id).data("num")) + 1);
                                            var e = $("#" + b.id).data("num") + "条新回复", f = $(this).find(".post-footer:first>em.newcoment");
                                            f.html(e), f.show()
                                        }
                                        $(b).find("ul:first").prepend(g.creatHtml(c, "undis"))
                                    }
                                });
                                if ($("#hiddenCon").html() && c.parent) {
                                    var h = $("#hiddenCon li");
                                    $.each(h, function (a, b) {
                                        "comment_" + c.parent == b.id && $(b).children(".children").append(g.creatHtml(c))
                                    })
                                }
                            }
                        });
                        var h = $("#hiddenCon li").not($(".hide")).length;
                        h && ($("#showNum span").html("<em>" + h + "</em> 条新评论"), $("#showNum").show().animate({height: "30px"}, "slow", function () {
                            e.IframeHeight()
                        })), $("#showNum").unbind().bind("click", function () {
                            $("#allComments ul:first").prepend($("#hiddenCon").html()), $("#hiddenCon .blueflag").each(function (a, b) {
                                var c = $(this).attr("id");
                                e.BlueLine("#" + c)
                            }), $("#allComments li.temporary").remove(), $("#hiddenCon").html(""), $(this).hide(), $("#allComments .tipInfo").hide(), e.IframeHeight(), f.options.newsNum = 0, CORAL_BOSS.sendClientStat(curSite, 1, d, "clk_newcomment_notice")
                        }), e.UpdateTime()
                    }
                },
                error: function (a, b, c) {
                    "timeout" == b && setTimeout(function () {
                        loadNewHtml()
                    }, 5e3)
                }
            })
        }
    };
    c.exports = h
}), define("coral.callback", function (a, b, c) {
    var d = a("coral.base"), e = a("coral.dom"), f = a("coral.login"), g = a("coral_rte"), h = {
        options: {
            $allComments: $("#tab1_allComments"),
            $top_textarea: $("#top_textarea"),
            $topReply: $("#top_reply"),
            $loginBtn: $("#top_post_btn"),
            $replylistId: "",
            $insertFlag: "comment",
            $loginFlag: $("#loginFlag"),
            reportId: "",
            dataImgObj: "[]"
        }, pubCallback: function (a, b, c) {
            var e = a.split("_")[0], h = this.options, i = this, j = "评论成功!", k = !0, l = "", m = function (a) {
                switch (a) {
                    case 0:
                        i.insertTempCommentFn(null, b);
                        break;
                    case 8:
                        f.showLoginLayer();
                        break;
                    case 9:
                    case 13:
                    case 16:
                    case 17:
                        i.insertTempCommentFn(null, l);
                        break;
                    case 80:
                        j = "字数不够，请再多写一些吧。";
                        break;
                    case 81:
                        j = "标题不能超过100个字。";
                        break;
                    case 12:
                        j = "你发的太快了!";
                        break;
                    case 14:
                        j = "请不要发重复贴!";
                        break;
                    case 43:
                        j = "你没有权限修改这篇深度解读!";
                        break;
                    case 44:
                        j = "六小时内只能修改一次，请稍后修改!";
                        break;
                    default:
                        j = "发布失败，请稍后再试。"
                }
            }, n = function () {
                $("#ypl_post_btn2").show(), $("#ypl_post_btn3").hide(), setTimeout(function () {
                    r.html(" ")
                }, 2e3)
            }, o = {};
            if ("[]" != h.dataImgObj && "" != h.dataImgObj && (o = jQuery.parseJSON(h.dataImgObj)), "top" == e) "" !== $.trim($("#top_textarea").val()) && ($("#insertPicList .upimgbox").remove(), $("#insertPicList").hide()), b.ret ? (j = b.error2show || "<b>囧</b>... 出错了！ ", k = !1, setTimeout(function () {
                    h.$top_textarea.focus(), h.$topReply.find("span.np-tip-error").html(j).fadeOut("fast")
                }, 2e3)) : (l = {
                    data: {
                        parent: "0",
                        commentid: (new Date).getTime(),
                        time: parseInt((new Date).getTime() / 1e3),
                        content: "" + d.EncodeHtml(h.$top_textarea.val()),
                        checktype: "0",
                        picture: o
                    }
                }, m(b.errCode), h.$loginBtn.removeClass("np-btn-submit-loading")), h.$topReply.find("span.np-tip-error").html(j).fadeIn("fast"), k && (h.$top_textarea.val(""), setTimeout(function () {
                h.$topReply.find("span.np-tip-error").hide(), h.$topReply.find("span.fontsline").show()
            }, 2e3)); else if ("pop" == e) {
                var p = a.replace(/pop_/, ""), q = $("#" + p + ">.children .tips"), r = $("#content").find(".pop_reply:visible .tips"), s = $("#content").find(".pop_reply:visible textarea"), t = a.replace(/pop/, "pop_text");
                "" != $("#public_reply textarea").val() && ($("#insertPicList_reply .upimgbox").remove(), $("#insertPicList_reply").hide()), b.ret ? (tips = b.error2show || "<b>囧</b>... 出错了！ ", q.html(tips).hide().fadeIn("slow"), setTimeout(function () {
                        $("#" + t).focus(), q.html("")
                    }, 2e3)) : (l = {
                        data: {
                            parent: h.replylistId,
                            commentid: (new Date).getTime(),
                            time: parseInt((new Date).getTime() / 1e3),
                            content: d.EncodeHtml($(s).val()),
                            checktype: "0",
                            picture: o
                        }
                    }, m(b.errCode), r.html(j).hide().fadeIn("slow"), $("#content").find(".pop_reply:visible .np-reply-box-footer a").removeClass("np-btn-submit-loading").addClass("submit").html("回复"), setTimeout(function () {
                        $(s).focus(), r.html("")
                    }, 2e3))
            } else if ("yp" == e) {
                var r = $("#yp_box").find(".pop_reply:visible .tips"), p = a.replace(/yp_/, ""), q = $("#" + p + ">.children .tips"), s = $("#yp_box").find(".pop_reply:visible textarea"), t = a.replace(/yp/, "yp_text");
                "" != $("#public_reply textarea").val() && ($("#insertPicList_reply .upimgbox").remove(), $("#insertPicList_reply").hide()), m(b.errCode), b.ret ? (tips = b.error2show || "<b>囧</b>... 出错了！ ", q.html(tips).hide().fadeIn("slow"), setTimeout(function () {
                        $("#" + t).focus(), q.html("")
                    }, 2e3)) : (r.html(j).hide().fadeIn("slow"), $(s).val(""), $("#yp_box").find(".pop_reply:visible .np-reply-box-footer a").removeClass("np-btn-submit-loading").addClass("submit").html("回复"), setTimeout(function () {
                        $(s).focus(), r.html("")
                    }, 2e3))
            } else if ("ypl" == e) {
                var r = $(".review-btn-wrap .np-tip-error");
                m(b.errCode), r.html(j).hide().fadeIn("slow"), 0 == b.errCode ? ($("#ypl_post_btn2").show(), $("#ypl_post_btn3").hide(), $("#yp_title").val(""), g.clearRte(), $("#yp_post_text").val(""), $("#yp_title").focus(), $("#yp_post_text").height(160), setTimeout(function () {
                        r.html(" ")
                    }, 2e3)) : n()
            } else if ("yptop" == e) {
                var r = $(".np-tip-error"), j = "";
                switch (b.errCode) {
                    case 0:
                        j = "评论成功!";
                        break;
                    case 8:
                        f.showLoginLayer();
                        break;
                    case 9:
                    case 13:
                    case 16:
                    case 17:
                        j = "你无权发表这条评论";
                        break;
                    case 80:
                        j = "影评太短了!";
                        break;
                    case 81:
                        j = "标题太长了!";
                        break;
                    case 12:
                        j = "你发的太快了!";
                        break;
                    case 14:
                        j = "请不要发重复贴!";
                        break;
                    case 43:
                        j = "你没有权限修改这篇深度解读!";
                        break;
                    case 44:
                        j = "六小时内只能修改一次，请稍后修改!";
                        break;
                    default:
                        j = "系统出错请稍后再发!"
                }
                r.css("color", "red").html(j).hide().fadeIn("slow"), 0 == b.errCode && ($("#yptop_title").val("+标题").css("color", "#e6e5e5"), $("#top_textarea").val("")), setTimeout(function () {
                    r.html(" ")
                }, 2e3)
            } else if ("ypup" == e) {
                var r = $(".review-btn-wrap .np-tip-error"), j = "修改成功，请您耐心等待审核";
                m(b.errCode), r.html(j).hide().fadeIn("slow"), 0 == b.errCode ? ($("#ypl_post_btn2").show(), $("#ypl_post_btn3").hide(), setTimeout(function () {
                        parent.location.href = "http://video.coral.qq.com/c/" + parent.coverid + "/review"
                    }, 3e3)) : n()
            } else"report" == e ? (0 == b.errCode ? ($("#report_comment_" + b.data.commentid).html("").append("<em>24小时内给您反馈，见我的牛评</em>"), $("#report_top_" + b.data.commentid).html("").append("<em>24小时内给您反馈，见我的牛评</em>"), $("#report_msg_" + b.data.commentid).html("").append("<em>24小时内给您反馈，见我的牛评</em>")) : 12 == b.errCode ? $("#" + h.reportId).html("").append("<em>您今天举报的条数已达上限</em>") : $("#" + h.reportId).html("").append("<em>该评论已被举报或处理!</em>"), $("#" + h.reportId).addClass("np-btn-active"), $(".np-report").remove()) : "delete" == e && 0 == b.errCode && $("#post_" + b.data.commentid).animate({height: "0px"}, "slow", function () {
                    $(this).remove(), d.IframeHeight()
                })
        }, insertTempCommentFn: function (b, c) {
            var e = a("coral.center"), f = a("coral.config"), g = this;
            g.insertTempComment(c), e.options.$urlapi_mycomment.msgid = e.options.$urlapi_mycomment.first, f.options.columApi && $("#mycon").hasClass("np-active") && $("#myCowComment").hasClass("np-active") && (e.options.$urlapi_mycomment.pageflag = 0, e.loadMyComment()), d.UpdateTime()
        }, insertTempComment: function (a) {
            var b = a.data.commentid || "", c = a.data.content || "", f = a.data.title || "", h = a.data.richtype || "", i = a.data.parent || "", j = a.data.time || "", k = a.data.checktype || "", l = a.data.picture || "", m = "", n = this.options, o = n.$loginFlag.find(".np-user").html(), p = n.$loginFlag.find("img").attr("src"), q = "";
            a.data.title && (q = '<h3 title="' + a.data.title + '">' + a.data.title + "</h3>", n.$insertFlag = "yp");
            var r = "", s = "", t = "", u = "", v = 0, w = "", x = "", y = "";
            y = "y" == n.$loginFlag.data("ypbs") ? 1 : 0, n.$loginFlag.find("span:first").hasClass("hyw") ? (r = n.$loginFlag.find(".huiyuan").attr("class"), s = r.replace(/[^0-9]/gi, ""), t = 1, u = parseInt(s), w = "hyy", x = "huiyuan p" + u) : n.$loginFlag.find("span:first").hasClass("hyw0") && (w = "hyy0", x = "huiyuan0"), n.$loginFlag.find("span:first").hasClass("hyw_nian") && (v = 1, n.$loginFlag.find("span:first").hasClass("hyw") && (w = "hyy hyy_nian", x = "huiyuan huiyuan_nian p_nian" + u));
            var z = "";
            a.data && a.data.video && a.data.video.length > 0 && (c = g.transform.transVideo(c, a.data.video));
            var A = c.replace("<script>", "&lt;script&gt;");
            A = A.replace("</script>", "&lt;/script&gt;"), A = A.replace(/\n/g, "<br />");
            var m = "", B = "";
            if (void 0 != l && l.length) {
                m = '<div><ul class="list_w100" id="pic_' + b + '">';
                for (var C = 0, D = l.length; C < D; C++)B = l[C].width > l[C].height ? "height=100" : "width=100", m += '<li class="list_item"><a href="javascript:void(0)" class="figure"><img data-order="' + C + '" data-total="' + D + '" ' + B + ' class="np-con-img" data-width = "' + l[C].width + '" data-height = "' + l[C].height + '" src="' + l[C].url + '/100" /></a></li>';
                m += "</ul></div>"
            }
            if (1 == k) {
                var E = {
                    id: b,
                    parent: 0,
                    ypReplyMarkNoShareBtn: 1,
                    time: j,
                    content: c,
                    title: f,
                    richtype: h,
                    up: 0,
                    score: $(".rate-score .scored").length,
                    userinfo: {
                        userid: $.cookie("uid"),
                        commentnum: "",
                        upnum: 0,
                        nick: o,
                        head: p,
                        region: "",
                        hwvip: t,
                        hwlevel: u,
                        hwannual: v,
                        specialidentity: y
                    },
                    picture: l
                };
                z = e.creatHtml(E, "blueflag", n.$insertFlag)
            } else {
                scoreHtml = '<div class="user-score">';
                var F, D = $(".rate-score .scored").length;
                if (D > 0)for (F = 1; F <= 5; F++)F <= D ? scoreHtml += '<a href="javascript:;" class="score score' + F + ' scored" hidefocus="true"></a>' : scoreHtml += '<a href="javascript:;" class="score score' + F + '" hidefocus="true"></a>';
                scoreHtml += "</div>", z = '<li class="np-post temporary blueflag" id="comment_' + b + '"><div class="np-tip-newpost"></div><img class="np-avatar popClick" src="' + p + '" alt="头像"><div class="np-post-body"><div class="np-post-header"><span class="' + w + '"><a href="javascript:void(0)" class="np-user popClick" post_uid = "' + $.cookie("uid") + '">' + o + '</a><a href="http://film.qq.com/vip.html?ptag=film_direct.comment" target="_blank" class="' + x + '" title="会员尊享红名特权"></a></span><span class="np-time">刚刚</span>' + scoreHtml + ' </div><div class="np-post-content">' + q + "<p>" + A + "</p></div>" + m + "</div></li>"
            }
            if (0 != parseInt(i)) ($("#top_" + i).length || $("#comment_" + i).length || $("#post_" + i).length || $("#msg_" + i).length) && ($("#top_" + i + ">ul.children").prepend(z).children("div.pop_reply").hide(), 256 == a.data.richtype && $("#content").hasClass("content_dc") ? $(z).insertAfter($("#comment_" + i)) : $("#comment_" + i + ">ul.children").prepend(z).children("div.pop_reply").hide(), $("#post_" + i + ">ul.children").children("div.pop_reply").hide(), $("#msg_" + i + ">ul.children").prepend(z).children("div.pop_reply").hide(), d.IframeHeight()); else {
                if ($("#allComments .tipInfo:visible") && $("#allComments .tipInfo").hide(), n.$allComments.find(".np-title-new").length) {
                    n.$allComments.find(".np-title-new").after(z);
                    $("#comment_" + b).offset().top
                } else n.$allComments.find(".post-list").prepend(z);
                d.IframeHeight()
            }
        }, blueLine: function (a) {
            setTimeout(function () {
                $(a + ">.np-tip-newpost").animate({opacity: "0"}, 1e4), setTimeout(function () {
                    $(a + ">.np-avatar").animate({left: "0px"}, 400), $(a + ">.np-post-body").animate({}, 400), $(a).removeClass("blueflag")
                }, 8e3)
            }, 5e3)
        }
    };
    c.exports = h
}), define("coral.login", function (a, b, c) {
    var d = a("coral.center"), e = a("coral.config"), f = a("coral.base"), g = {
        onLogined: function (a, b, c) {
            var g = "";
            g = b.replace(/</g, "&lt;"), g = g.replace(/>/g, "&gt;");
            var h = this, i = "//imgcache.gtimg.cn/tencentvideo_v1/vstyle/web/v3/style/images/default_avatar.png", j = e.options, k = c ? c : i;
            j.$loginFlag.data("userPic", c), j.$loginFlag.data("nick", b), j.$loginBtn.html("发表评论"), j.$loginFlag.find("img").attr("src", k), j.$loginFlag.find("em").html(g), $("#loginFlag span:first").removeClass(), $("#loginFlag span:first a").removeClass(), j.$loginFlag.show(), $("#my-message .tipInfo").show(), $(".pop_user_login").hide(), $("#public_reply .np-btn-submit").html("回复"), $(".np-reply-box-info").show(), $("#my-message-list").html(""), $("#my-notification-list").html(""), $("#loadCmtMore").hide(), j.loginuin && j.$top_textarea.focus(), f.IframeHeight(), d.options.$urlapi_mycomment.msgid = "", d.options.$urlapi.pageflag = "0", d.options.$urlapi_mycomment.pageflag = "0", h.changeUid(), j.centerFlag && j.$myCowComment.trigger("click"), j.changeFlag && (j.$myAllComment.trigger("click"), $("#tab2_myComments .tipInfo").removeClass("waitting").addClass("waitting").html("").show(), $("#tab2_myComments .np-load-more").hide())
        }, loginOut: function (a) {
            var b = e.options;
            a || b.$logoutTrigger.click(), b.$loginFlag.hide(), $("#public_reply .np-btn-submit").html("登录"), b.$myAllComment.trigger("click"), b.$loginBtn.html("登录"), $(".np-reply-box-info").hide(), $("#my-message-list").html(""), $("#my-notification-list").html(""), $("#loadCmtMore").hide(), $("#loadMsgMore").hide(), $.removeCookie("uid")
        }, changeUid: function () {
            var a = e.options, b = "v_qq_com.comment";
            1 == a.film && (b = "film_direct.comment"), 1 == a.client && (b = "service.comment");
            var c = a.fetchUrl + "user/0?&source=0";
            "wx" == cherry.login.logintype && (c = a.fetchUrl + "user/0?&source=0&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid), $.ajax({
                dataType: "jsonp",
                url: c,
                success: function (c) {
                    0 == c.errCode && (1 == a.huiyuan && (1 == c.data.hwvip ? (1 == c.data.hwannual ? ($("#loginFlag span:first").addClass("hyw hyw_nian"), $("#loginFlag span.hyw a").addClass("huiyuan huiyuan_nian"), $("#loginFlag .huiyuan").addClass("p_nian" + c.data.hwlevel)) : ($("#loginFlag span:first").addClass("hyw"), $("#loginFlag span.hyw a").addClass("huiyuan"), $("#loginFlag .huiyuan").addClass("p" + c.data.hwlevel)), $("#loginFlag span.hyw a").attr("title", "会员尊享红名特权"), $("#loginFlag .huiyuan").attr("href", "http://film.qq.com/vip.html?ptag=" + b)) : ($("#loginFlag span:first").addClass("hyw0"), $("#loginFlag span.hyw0 a").addClass("huiyuan0"), $("#loginFlag span.hyw0 a").attr("title", "开通会员尊享评论红名特权"), $("#loginFlag .huiyuan").attr("href", "http://film.qq.com/vip.html?ptag=" + b))), 1 == c.data.specialidentity ? $("#loginFlag").data("ypbs", "y") : $("#loginFlag").data("ypbs", "n"))
                },
                error: function (a) {
                }
            })
        }, publicLoginEvent: function () {
            parent.registerCoralEvent && parent.registerCoralEvent.loginEvent ? parent.registerCoralEvent.loginEvent() : 0 != jQuery(parent.document.getElementById("oneKey")).length ? jQuery(parent.document.getElementById("oneKey")).click() : jQuery(parent.document.getElementById("onekey")).click()
        }, getUin: function () {
            var a = "";
            if (!jQuery.cookie("uin"))return a = jQuery.cookie("luin");
            a = jQuery.cookie("uin");
            var b = a.match(/[1-9][0-9]*/);
            return b instanceof Array ? a.match(/[1-9][0-9]*/)[0] : void 0
        }, showLoginLayer: function () {
            var a = this;
            a.publicLoginEvent()
        }, getKey: function () {
            return "wx" == YPlogin.logintype ? YPlogin.access_token : jQuery.cookie("skey") || jQuery.cookie("lskey")
        }, generateToken: function (a) {
            var b = 2013;
            if (a)for (var c = 0, d = a.length; c < d; c++)b += (b << 5) + a.charCodeAt(c);
            return 2147483647 & b
        }
    };
    c.exports = g
}), define("coral.center", function (a, b, c) {
    var d = a("coral.config"), e = a("coral.base"), f = {
        options: {
            $myCowComment: $("#myCowComment"),
            $myAllComment: $("#myAllComment"),
            $tabFlag: !0,
            $realtimeComments: 0,
            $insertFlag: "comment",
            $nowDate: new Date,
            $urlapi: {userId: 0, first: "", last: "", msgid: "", pageflag: 0},
            $urlapi_mycomment: {userId: 0, first: "", last: "", msgid: "", pageflag: 0},
            fetchUrl: "//coral.qq.com/"
        }, loadMyMessage: function () {
            this.clickLoadMore();
            var a = this, b = this.options, c = b.$urlapi, e = "", f = d.options.centerPageSize, g = 1;
            1 == b.$urlapi.pageflag && (f = 20, g = 2), "" != d.options.siteName ? b.fetchUrl = "//" + d.options.siteName + ".coral.qq.com/" : b.fetchUrl = "//coral.qq.com/";
            var h = "";
            h = "wx" == YPlogin.logintype ? b.fetchUrl + "user/" + b.$urlapi.userId + "/msg?msgid=" + b.$urlapi.msgid + "&pageflag=" + b.$urlapi.pageflag + "&reqnum=" + f + "&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid : b.fetchUrl + "user/" + b.$urlapi.userId + "/msg?msgid=" + b.$urlapi.msgid + "&pageflag=" + b.$urlapi.pageflag + "&reqnum=" + f, $.ajax({
                url: h,
                dataType: "jsonp",
                beforeSend: function () {
                    a._tips0 = (new Date).getTime()
                },
                success: function (d) {
                    (new Date).getTime();
                    if (8 == d.errCode)return void YPlogin.doLogin();
                    if (0 == d.errCode) {
                        if (0 == c.pageflag && (c.msgid = c.first = d.data.first, c.last = d.data.last, $("#my-message-list").html(""), d.data.retnum < d.data.total && 10 == d.data.retnum && $("#loadMsgMore").show(), 0 == d.data.retnum))return $("#my-message").children(".tipInfo").removeClass("waitting").html("暂无提醒").show(), void $("#loadMsgMore").hide();
                        1 == c.pageflag && (c.msgid = c.last = d.data.last);
                        var h = "";
                        if (2 == c.pageflag) {
                            c.msgid = c.first = d.data.first;
                            var h = "blueflag"
                        }
                        var i = d.data.message;
                        $.each(i, function (b, c) {
                            e += a.myCreateHtml(c, "message", h)
                        }), 1 == b.$urlapi.pageflag ? ($("#my-message-list").append(e), a.iframeHeight()) : ($("#my-message-list").prepend(e), a.iframeHeight(), $("#my-message-list .blueflag").each(function (b, c) {
                                a.blueLine("#" + $(this).attr("id"))
                            })), 2 == g && a.conHeight(2), a.iframeHeight(), d.data.retnum < f || d.data.total <= f ? ($("#loadMsgMore>span").hide(), $("#loadMsgMore>em").removeClass("np-load-more-loading")) : ($("#loadMsgMore>span").show(), $("#loadMsgMore>em").hide()), $("#my-message").children(".tipInfo").hide(), a.iframeHeight()
                    } else 0 == d.errCode && 0 == d.data.retnum ? 0 == $("#my-message-list li").length ? $("#my-message").children(".tipInfo").removeClass("waitting").html("暂无提醒").show() : $("#my-message").children(".tipInfo").hide() : ($("#my-message").children(".tipInfo").removeClass("waitting").html("暂无提醒").show(), $("#loadMsgMore").hide())
                }
            })
        }, loadMyComment: function () {
            var a = this, b = this.options, c = (b.$urlapi_mycomment, d.options.centerPageSize), e = 1;
            "" != d.options.siteName ? b.fetchUrl = "//" + d.options.siteName + ".coral.qq.com/" : b.fetchUrl = "//coral.qq.com/", 0 == b.$urlapi_mycomment.pageflag && (b.$urlapi_mycomment.last = 0), 1 == b.$urlapi_mycomment.pageflag && (c = 20, e = 2);
            var f = "";
            f = "wx" == YPlogin.logintype ? b.fetchUrl + "user/" + b.$urlapi_mycomment.userId + "/comment?lastid=" + b.$urlapi_mycomment.last + "&pageflag=" + b.$urlapi_mycomment.pageflag + "&reqnum=" + c + "&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid : b.fetchUrl + "user/" + b.$urlapi_mycomment.userId + "/comment?lastid=" + b.$urlapi_mycomment.last + "&pageflag=" + b.$urlapi_mycomment.pageflag + "&reqnum=" + c, $.ajax({
                url: f,
                dataType: "jsonp",
                jsonpCallback: "myComment",
                beforeSend: function () {
                    a._myCom0 = (new Date).getTime()
                },
                success: function (d) {
                    var e = "";
                    if (8 == d.errCode)return void YPlogin.doLogin();
                    if (0 == d.errCode) {
                        var f = ((new Date).getTime(), d.data.usermeta.region.replace(/:/g, " ")), g = "" != $.trim(f) ? f : "腾讯网友";
                        if (1 == b.huiyuan && 1 == d.data.usermeta.hwvip && ($("#myuserInfo").find("span:first").addClass("hyw"), $("#myuserInfo .hyw a").addClass("huiyuan p" + d.data.usermeta.hwlevel), 1 == b.film && $("#myuserInfo .hyw a").attr("href", "//film.qq.com/vip.html?ptag=film_direct.comment")), $("#myuserInfo").find("img").attr("src", d.data.usermeta.head || "//mat1.gtimg.com/www/coral2.0/images/g.gif"), $("#myuserInfo").find(".np-user").html(d.data.usermeta.nick), $("#myuserInfo").find(".a").html(g), $("#myuserInfo").find(".b").html(d.data.usermeta.upnum), $("#myuserInfo").find(".c").html(d.data.usermeta.commentnum), $("#myuserInfo").show(), 0 == b.$urlapi_mycomment.pageflag && (b.$urlapi_mycomment.msgid = b.$urlapi_mycomment.first = d.data.first, b.$urlapi_mycomment.last = d.data.last, $("#my-notification-list").html(""), 10 == d.data.retnum && $("#loadCmtMore").show(), 0 == d.data.retnum))return $("#my-notification").children(".tipInfo").removeClass("waitting").html("暂无评论").show(), $("#loadCmtMore").hide(), $("#myuserInfo").hide(), void a.iframeHeight();
                        1 == b.$urlapi_mycomment.pageflag && (b.$urlapi_mycomment.last = d.data.last), $.each(d.data.comments, function (b, c) {
                            e += a.myCreateHtml(c, "myComment")
                        }), $("#my-notification-list").append(e), a.conHeight(2), a.iframeHeight(), setTimeout(function () {
                            a.iframeHeight()
                        }, 200), d.data.retnum < c || d.data.total <= c ? ($("#loadCmtMore>span").hide(), $("#loadCmtMore>em").removeClass("np-load-more-loading")) : ($("#loadCmtMore>span").show(), $("#loadCmtMore>em").hide()), $("#my-notification").children(".tipInfo").hide()
                    } else $("#my-notification").children(".tipInfo").removeClass("waitting").html("暂无评论").show(), $("#loadCmtMore").hide(), 0 == $("#my-notification-list li").length && $("#my-notification").children(".tipInfo").show(), a.iframeHeight()
                }
            })
        }, myCreateHtml: function (b, c, d) {
            var f = e.FormatTime, g = this.options, h = this, i = "", j = "", k = "v_qq_com.comment";
            1 == this.options.film && (k = "film_direct.comment");
            var l = g.popupInfo, m = "", n = "", o = "";
            if (0 != b.repnum && (o = h.creatPostLink(b)), b.content)var p = "<p>" + b.content.replace(/\n/g, "<br />") + o + "</p>";
            var q = "";
            if (void 0 != b.picture && b.picture.length) {
                p += '<div><ul class="list_w100" id="pic_' + b.id + '">';
                for (var r = 0, s = b.picture.length; r < s; r++)q = b.picture[r].width > b.picture[r].height ? "height=100" : "width=100", p += '<li class="list_item"><a href="javascript:void(0)" class="figure"><img data-order="' + r + '" data-total="' + s + '" data-width="' + b.picture[r].width + '" data-height="' + b.picture[r].height + '" ' + q + ' class="np-con-img" src="' + b.picture[r].url + '/100" /></a></li>';
                p += "</ul></div>"
            }
            if ("message" == c) {
                if ("4" == b.tipstype && b.userlist && (b.userlist.length > 0 && ($.each(b.userlist, function (a, b) {
                        1 == g.huiyuan && 1 == b.hwvip && (m = "hyy", n = "huiyuan p" + b.hwlevel), a > 0 && (j += "、"), j += '<span class="' + m + '"><a href="javascript:void(0)" post_uid=' + b.userid + '  class="np-user ' + l + '">' + b.nick + '</a><a href="//film.qq.com/vip.html?ptag=' + k + '" target = "_blank" class="' + n + '"></a></span>'
                    }), b.userlist.length < b.up && (j += "等")), i = '<li class="post np-post ' + d + '" id="msg_' + b.id + '" tid="' + b.targetinfo.targetid + '"><div class="np-post-header"><span class="np-avatar np-avatar-upvote"></span>' + j + b.up + '顶了你的评论：<span class="np-text-strong">' + ("" == $.trim(b.content) ? "发表了一张图片" : e.SubString(b.content, 46)) + '</span><span class="np-time" date="' + b.tipstime + '">' + f(b.tipstime) + '</span></div><div class="np-post-content"><a class="np-link-weak" target="_blank" href="' + (b.targetinfo ? b.targetinfo.url : "") + '">' + b.targetinfo.title + '</a></div><div class="np-post-footer"></div><ul class="children"></ul></li>'), "8" == b.tipstype) {
                    1 == g.huiyuan && 1 == b.userinfo.hwvip && (b.vip1 = "hyy", b.vip2 = "huiyuan p" + b.userinfo.hwlevel), b.userinfo.head ? b.picUrl = b.userinfo.head.replace(/140/, "40") || "//t0.qlogo.cn/mbloghead/01676c4b10bbdb6f2618/50" : b.picUrl = "//mat1.gtimg.com/www/coral2.0/images/g.gif", b.tipstime = f(b.tipstime), b.popClick = l, b.blueflag = d, b.urlf = k, b.imgHtml = p;
                    var t = a("../tpl/remind8");
                    i = t(b)
                }
                if ("3" == b.tipstype) {
                    1 == g.huiyuan && 1 == b.userinfo.hwvip && (b.vip1 = "hyy", b.vip2 = "huiyuan p" + b.userinfo.hwlevel), b.userinfo.head ? b.picUrl = b.userinfo.head.replace(/140/, "40") || "//t0.qlogo.cn/mbloghead/01676c4b10bbdb6f2618/50" : b.picUrl = "//mat1.gtimg.com/www/coral2.0/images/g.gif", b.tipstime = f(b.tipstime), b.popClick = l, b.blueflag = d, b.urlf = k, b.imgHtml = p, b.parentinfo.content = e.SubString(b.parentinfo.content, 46), b.parentinfo2 = "";
                    var t = a("../tpl/remind3");
                    i = t(b)
                }
                if ("6" == b.tipstype) {
                    b.picUrl = "//t0.qlogo.cn/mbloghead/01676c4b10bbdb6f2618/50", b.content = e.SubString(b.content, 46), b.tipstime2 = f(b.tipstime);
                    var t = a("../tpl/remind6");
                    i = t(b)
                }
                if (b.targetinfo && (b.alink = b.targetinfo.url || "", b.atitle = b.targetinfo.title || ""), "5" == b.tipstype) {
                    b.blueflag = d, b.popClick = l, b.tipstime1 = f(b.tipstime), b.content = e.SubString(b.content, 46);
                    var t = a("../tpl/remind5");
                    i = t(b)
                }
                if ("9" == b.tipstype) {
                    b.tipstime = f(b.tipstime);
                    var t = a("../tpl/remind9");
                    i = t(b)
                }
                b.userinfo.head ? b.userinfo.head.replace(/140/, "40") : ""
            }
            if ("myComment" == c) {
                if (b.imgHtml = p, b.time3 = f(b.time), 0 != b.parent && b.parentinfo ? b.lineone = "<div>回复了<a post_uid=" + b.parentinfo.userinfo.userid + ' href="javascript:void(0)" class="np-user ' + l + '">' + b.parentinfo.userinfo.nick + '</a>的评论<span class="np-text-strong">' + e.SubString(b.parentinfo.content, 46) + "</span></div>" : b.lineone = "发表评论", b.titleHtml = '<a href="' + b.targetinfo.url + '" target = "_blank" class="np-link-weak">' + (b.targetinfo.title ? b.targetinfo.title : " ") + "</a>", 256 === b.richtype && "0" == b.parent) {
                    var u = "//video.coral.qq.com/review/cm/" + b.targetinfo.articleid + "/" + b.id;
                    b.updateHtml = '<a href="' + u + '" class="np-btn-update update" target="_blank">修改</a>'
                }
                var t = a("../tpl/mycomments");
                i = t(b)
            }
            return i
        }, clickLoadMore: function () {
            var a = this, b = this.options;
            $("body").delegate("#loadMsgMore>span", "click", function () {
                $("#loadMsgMore>span").hide(), $("#loadMsgMore>em").addClass("np-load-more-loading").show(), b.$urlapi.pageflag = 1, b.$urlapi.msgid = b.$urlapi.last,
                    a.loadMyMessage()
            }), $("body").delegate("#loadCmtMore>span", "click", function () {
                $("#loadCmtMore>span").hide(), $("#loadCmtMore>em").addClass("np-load-more-loading").show(), b.$urlapi_mycomment.pageflag = 1, b.$urlapi_mycomment.msgid = b.$urlapi_mycomment.last, a.loadMyComment()
            })
        }, creatPostLink: function (a) {
            this.options;
            return "<a class='" + d.options.popupLink + "' targetid='" + a.targetid + "' commentid='" + a.id + "' parentid='" + a.parent + "' href='javascript:void(0)'><img src='//mat1.gtimg.com/www/niuping2013/postframe/transparent.gif' /></a>"
        }, iframeHeight: function () {
            var a = $("#mainBody").height();
            $(parent.document.body).find("#commentIframe1").length ? $(parent.document.body).find("#commentIframe1").height(a) : $(parent.document.body).find("#commentIframe").height(a), parent.registerCoralEvent && parent.registerCoralEvent.iframeHeight && parent.registerCoralEvent.iframeHeight()
        }, conHeight: function (a) {
            var b = $("#allComments .np-post .np-post-content[data-height!=5]"), c = 24;
            $("#allComments .np-post .np-post-content").length && (/px/.test(b.css("line-height")) && (c = b.css("line-height").split("px")[0]), 2 == a && (b = $("#my-message-list .np-post .np-post-content[data-height!=5] p")), 3 == a && (b = $("#my-notification-list .np-post .np-post-content[data-height!=5]")), 5 == a && (b = $("#allComments .topIco .np-post-content[data-height!=5]")), b.each(function (a, b) {
                $(this).attr("data-height", "5"), $(this).height() > 6 * c && !$(this).next(".spreadMoreBtn").length && $(this).css({
                    height: 5 * c,
                    overflow: "hidden"
                })
            }))
        }, blueLine: function (a) {
            setTimeout(function () {
                $(a + ">.np-tip-newpost").animate({opacity: "0"}, 1e4), setTimeout(function () {
                    $(a + ">.np-avatar").animate({left: "0px"}, 400), $(a + ">.np-post-body").animate({"padding-left": "10px"}, 400), $(a).removeClass("blueflag")
                }, 8e3)
            }, 5e3)
        }
    };
    c.exports = f
}), define("coral_v3.6.29", function (a, b, c) {
    document.domain = "qq.com";
    var d = "";
    !function (b) {
        var c = b(document), e = (b(parent.document) || "", b(window), b("body")), f = "//mats.gtimg.com/www/coral2.0/images/g.gif", g = (location.protocol + "//" + location.host + location.pathname, ""), h = "";
        h = "www" == top.location.host.split(".")[0] ? top.location.host.split(".")[1] : top.location.host.split(".")[0];
        var i = a("coral.login"), j = a("coral.config"), k = a("coral.base"), l = a("coral.center"), m = a("coral.dom"), n = a("coral.img"), o = (a("coral.realtime"), a("coral.post")), p = (a("coral.score"), !1), q = function (a, b) {
            var c = '<div class="alert-tip" ><img src="//mats.gtimg.com/v/coral_yp_2015_v3.0/ueditor-resource/themes/default/images/insertPhoto_triangle.png"><span style="margin-right:0px;" >' + b + "</span>";
            a.append(c), setTimeout(function () {
                a.find(".alert-tip").remove()
            }, 1e3)
        };
        d = {
            options: {
                $content: b("#content"),
                $ypbox: b("#yp_box"),
                $showNum: b("#showNum"),
                $commentTotleNum: b("#commentTotleNum"),
                $loadMore: b("#loadMore"),
                $allComments: b("#tab1_allComments"),
                wfetchUrl: "//w.coral.qq.com/",
                fetchUrl: "//coral.qq.com/",
                $myComments: b("#tab2_myComments"),
                $myTips: b("#tab3_tips"),
                $myCons: b("#tab4_mycon"),
                $loginFlag: b("#loginFlag"),
                $loginBtn: b("#top_post_btn"),
                loginuin: 0,
                $top_textarea: b("#top_textarea"),
                $myCowComment: b("#myCowComment"),
                $myAllComment: b("#myAllComment"),
                changeFlag: 0,
                huiyuan: 0,
                $iframeHeight: "0",
                $replylistId: "",
                $tabFlag: !0,
                $insertFlag: "comment",
                topContentTips: "",
                reportId: "",
                order: "",
                upId: "",
                lastId: "",
                noticeFlag: !0
            }, _createy: function () {
                this.init(), this.bindSubmitEvent(), this.bindReportEvent(), this.bindDeleteEvent(), this.bindFooterEvent(this.options.$content), this.bindFooterEvent(this.options.$ypbox), this.bindOtherEvents(), this.showOrHide(), k.IframeHeight()
            }, _createhot: function () {
                this.init(), this.bindSubmitEvent(), this.bindReportEvent(), this.bindDeleteEvent(), this.bindFooterEvent(this.options.$content), this.bindOtherEvents(), this.showOrHide(), k.IframeHeight(), n.upLoadImg(), this.initPostFrame(), b("#iframe0").length || e.append('<iframe id="iframe0" name="iframe0" style="display:none"><script type="text/javascript">document.domain = "qq.com";</script></iframe>')
            }, _create: function () {
                this.init(), this.changeTab(), this.bindSubmitEvent(), this.bindReportEvent(), this.bindDeleteEvent(), this.bindFooterEvent(this.options.$content), this.bindFooterEvent(this.options.$ypbox), this.bindOtherEvents(), this.loadCommentNum(), this.hotList(), this.makeCommentList(), this.tabsComment(), this.initPostFrame(), this.loadNum(), this.showOrHide(), this.comeToWrite(), n.upLoadImg(), k.IframeHeight(), b("#iframe0").length || e.append('<iframe id="iframe0" name="iframe0" style="display:none"><script type="text/javascript">document.domain = "qq.com";</script></iframe>')
            }, init: function () {
                var a = (j.options, this);
                if (window.YPlogin = cherry.login, YPlogin.init(), YPlogin.isLogin()) {
                    var c = "", d = "", e = "";
                    "qq" == YPlogin.logintype ? (c = YPlogin.uin, d = YPlogin.getNick(), e = YPlogin.getAvatar()) : (c = YPlogin.openid || "100000", d = YPlogin.getNick(), e = YPlogin.getAvatar() ? YPlogin.getAvatar() : f), i.onLogined(c, d, e)
                }
                YPlogin.on("login", function () {
                    YPlogin.init(), i.onLogined(YPlogin.uin, YPlogin.getNick(), YPlogin.getAvatar())
                }), YPlogin.on("logout", function () {
                    YPlogin.init(), i.loginOut()
                }), g = g || parent.cmt_id, parent.window.COVER_INFO ? spid = parent.window.COVER_INFO.id || parent.coverid : spid = parent.coverid, parent.window.COVER_INFO && "undefined" != typeof parent.COVER_INFO.movie_comment_set && 1047775 !== parent.COVER_INFO.movie_comment_set && "1047775" !== parent.COVER_INFO.movie_comment_set && (p = !0, b("#yp_box").show(), a.makeYpingList(), a.textareaChange(), b(".np-title strong").html("影评"), b(".np-tip-error").css({
                    top: "13px",
                    right: "170px"
                })), p ? b("#yplink").show() : (b(".np-title strong").html("网友评论"), b(".np-index-link").show(), b(".np-title span").show()), b(parent.document).find("#commentIframe").css({
                    "-webkit-transition": "height 0.6s ease",
                    transition: "height 0.6s ease"
                }), b(parent.document).find("#commentIframe1") && b(parent.document).find("#commentIframe1").css({
                    "-webkit-transition": "height 0.6s ease",
                    transition: "height 0.6s ease"
                }), b("#mainBody").css("width", "100%"), j.options.commentNumbers = b(parent.document).find(".commentNumbers") ? b(parent.document).find(".commentNumbers") : "", b("#allComments .post-list").length || b("#allComments").append("<ul class='post-list'></ul>"), b("a").each(function () {
                    b(this).attr("hideFocus", "true")
                }), j.init(), b("#yp_btn").on("click", function (a) {
                    a.stopPropagation(), window.parent.open("http://video.coral.qq.com/c/" + spid + "/review?exit=1")
                }), b("#mainBody").on("click", "#yp_write, #yp_first", function (a) {
                    a.stopPropagation(), window.parent.open("http://video.coral.qq.com/c/" + spid + "/review?exit=1")
                }), b("#mainBody").on("click", "#il-rukou .np-r", function () {
                    b(this).hasClass("np-active") || (b(this).parent().find("a").removeClass("np-active"), b(this).addClass("np-active"), a.makeYpingList())
                }), b("#mainBody").on("click", "#il-rukou .np-x", function () {
                    b(this).hasClass("np-active") || (b(this).parent().find("a").removeClass("np-active"), b(this).addClass("np-active"), a.makeYpingList("timelinecomment"))
                }), b("#mainBody").delegate(".ypbtt", "click", function () {
                    var a = 0 != b(this).find(".wechat").length, c = spid, d = b(this).attr("data-id");
                    a || window.parent.open("http://video.coral.qq.com/review/c/" + c + "/" + d)
                })
            }, textareaChange: function () {
                var a = this;
                b("#top_textarea").before('<div class="yp_notice"><span></span>300字的短评已经不够你畅快抒发观后感了吧，加上标题，可以发表到深度解读哦，大家正在期待你的深度解读呢！（不加标题可以继续发表短评哦。）</div><input type="text" class="yptop_title" id="yptop_title" value="+标题" style="display:none; color:#e6e5e5;" />'), b("#top_post_btn").after('<a href="javascript:;" class="yp_write" id="yp_write">写深解读</a>'), b("#top_textarea").on("keyup input propertychange", function () {
                    var c = b(this).val();
                    wordNum = c.replace(/[^\x00-\xff]/g, "aa").length, wordNum > 600 && (b("#yptop_title").show(), b("#sybol_pic").hide(), b(this).height(160), a.options.noticeFlag && (b(".yp_notice").show(), k.IframeHeight(), a.options.noticeFlag = !1))
                }), b("#yptop_title").on("blur", function () {
                    var a = b(this).val();
                    "" == a && b(this).val("+标题").css("color", "#e6e5e5")
                }), b("#yptop_title").on("focus", function () {
                    var a = b(this).val();
                    "+标题" == a && b(this).val("").css("color", "#2a2a2a"), b(".yp_notice").hide()
                }), b("#commentArea").on("click", ".yp_notice", function () {
                    b(".yp_notice").hide()
                })
            }, showOrHide: function () {
                b("#mainBody").on("click", ".shows_btn_show", function (a) {
                    a.preventDefault();
                    var c = b(this).parents(".np-post-body").find(".yp_imgs"), d = b(this).parents(".np-post-body").find(".yp_con");
                    b(this).parents(".np-post-body").find(".yp_abstract").hide(), d.show(), c.hide(), b(d.find("img")[0]).attr("src") || d.find("img").each(function () {
                        b(this).attr("src", b(this).attr("data-src")), b(this).css({
                            background: "url(//mats.gtimg.com/v/coral_yp_2015_v3.0/images/d.png) no-repeat",
                            width: parseInt(b(this).attr("data-width")) > 820 ? 820 : parseInt(b(this).attr("data-width")),
                            height: parseInt(b(this).attr("data-width")) > 820 ? 820 * parseInt(b(this).attr("data-height")) / parseInt(b(this).attr("data-width")) : parseInt(b(this).attr("data-height"))
                        })
                    }), CORAL_BOSS.sendUserBehav("lookFullReview_" + CORAL_BOSS.getPageInfo()), k.IframeHeight()
                }), b("#mainBody").on("click", ".shows_btn_hide", function (a) {
                    a.preventDefault();
                    var c = b(this).parents(".np-post").offset().top, d = (b(this).parents(".np-post").height(), b(window.top.document).find("#commentIframe1").offset() ? b(window.top.document).find("#commentIframe1").offset().top : b(window.top.document).find("#commentIframe").offset().top), e = b(window.top).scrollTop();
                    b(window.top).height();
                    b(this).parents(".np-post-body").find(".yp_con").hide(), b(this).parents(".np-post-body").find(".yp_abstract").show();
                    var f = b(this).parents(".np-post-body").find(".yp_imgs");
                    f.show(), c + d < e && b(window.top).scrollTop(c + d), k.IframeHeight()
                })
            }, makeYpingList: function (a) {
                var c = "upcomment";
                a && (c = "timelinecomment");
                var e = "//video.coral.qq.com/filmreviewr/c/" + c + "/" + spid + "?";
                e += YPlogin.isLogin() && "wx" == YPlogin.logintype ? "code=0&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid + "&" : "", e += d.lastYPCommentId ? "commentid=" + d.lastYPCommentId + "&reqnum=3" : "reqnum=2", b.ajax({
                    url: e,
                    dataType: "jsonp",
                    callback: "loadyplist",
                    success: function (a) {
                        0 == a.errCode ? (a.data.hasnext && b("#yp_box>.np-load-more").show(), 0 == a.data.commentid.length ? (b("#yp_box .np-warring-info").show(), b("#yp_box .np-load-more").hide()) : (d.lastYPCommentId || b("#yp_box .post-list").html(""), b.each(a.data.commentid, function (a, c) {
                                    b("#yp_box .post-list").append(m.creatHtml(c, 0, "yp"))
                                }), a.data.hasnext ? (d.lastYPCommentId = a.data.last, b("#yp_box>.np-load-more").show()) : (b("#yp_box>.np-load-more").hide(), d.lastYPCommentId = "")), d.lastYPCommentId || ("undefined" != typeof a.data.targetinfo.reviewspread && "" != a.data.targetinfo.reviewspread ? b("#top_reply").after('<p class="yp_gene_deep">' + a.data.targetinfo.reviewspread + "</p>") : "undefined" != typeof a.data.targetinfo.spread && "" != a.data.targetinfo.spread && b("#top_reply").after('<p class="yp_gene_deep">' + a.data.targetinfo.spread + "</p>")), setTimeout(function () {
                                k.IframeHeight()
                            }, 500)) : (b("#yp_box .np-warring-info").show(), b("#yp_box .np-load-more").hide())
                    }
                })
            }, loadCommentNum: function () {
                var a = this, c = this.options, d = c.fetchUrl + "article/" + g + "/commentnum";
                b.ajax({
                    url: d, dataType: "jsonp", beforeSend: function () {
                        a._hotTimer0 = (new Date).getTime()
                    }, success: function (a) {
                        0 == a.errCode && (j.options.commentNumbers.html(a.data.commentnum), c.$commentTotleNum.html("<span>" + a.data.commentnum + "条评论</span>"))
                    }
                })
            }, makeCommentList: function () {
                var a = this, c = this.options;
                1 == j.options.columLink ? c.$commentTotleNum.attr("href", "http://coral.qq.com/" + g) : (c.$commentTotleNum.attr("href", "javascript:void(0)"), c.$commentTotleNum.removeAttr("target"), c.$commentTotleNum.css("cursor", "default"), c.$commentTotleNum.css("text-decoration", "none")), 2 == j.options.columLink && (b("#globalNav h1").hide(), b("#globalNav").css("border-bottom", "none")), b(parent.document.getElementById("cmtNum")) && b(parent.document.getElementById("cmtNum")).attr({
                    href: c.fetchUrl + g,
                    target: "_blank"
                }), j.options.columApi && a.loadMore(), c.$loadMore.find("span").unbind().bind("click", function () {
                    b("#loadMore>span").hide(), b("#loadMore>em").addClass("np-load-more-loading").show(), a.loadMore(c.lastId), c.$loadMore.data("loadMoreNume") - j.options.homePageSize <= 0 ? (c.$loadMore.hide(), c.$loadMore.data("loadMoreNume", 0)) : c.$loadMore.data("loadMoreNume", c.$loadMore.data("loadMoreNume") - j.options.homePageSize)
                })
            }, hotList: function () {
                var a = this, c = this.options, d = c.fetchUrl + "article/" + g + "/hotcomment?reqnum=" + j.options.hotPageSize;
                j.options.columHot && b.ajax({
                    url: d,
                    dataType: "jsonp",
                    jsonpCallback: "hotcommentList",
                    beforeSend: function () {
                        a._hotTimer0 = (new Date).getTime()
                    },
                    success: function (a) {
                        if (0 == a.errCode) {
                            (new Date).getTime();
                            if (0 != a.data.commentid.length) {
                                var c = a.data.commentid.length;
                                b.each(a.data.commentid, function (d, e) {
                                    b("#allComments .post-list").prepend(m.creatHtml(a.data.commentid[c - d - 1], 0, "top"))
                                }), b.each(b("#allComments li.topAll"), function (a, d) {
                                    a == c - 1 && (b(this).addClass("noborder"), p ? b("#allComments .np-title-new").length || b(this).after('<li class="np-title-new"><span class="ypcmt_tit">最新短评</span><a class="ypcmt_btn" href="javascript:;" id="newtitle_list">我来评</a><div class="clear"></div></li>') : b(this).after('<li class="np-title-new"><span class="ypcmt_tit">最新短评</span><div class="clear"></div></li>'))
                                }), p ? b("#allComments .post-list").prepend('<li class="np-title-hot"><span class="ypcmt_tit">精华短评</span><a class="ypcmt_btn" href="javascript:;" id="hottitle_list">我来评</a><p class="hottitle_con"></p></li>') : b("#allComments .post-list").prepend('<li class="np-title-hot"><span style="display:block;float:none;margin-top:10px" class="ypcmt_tit">热门评论</span></li>'), setTimeout(function () {
                                    k.IframeHeight()
                                }, 600)
                            }
                        }
                    }
                })
            }, comeToWrite: function () {
                var a = this;
                b("#mainBody").on("click", "#yp_box>.np-load-more", function (b) {
                    b.preventDefault(), b.stopPropagation(), a.makeYpingList()
                }), b("#mainBody").on("click", "#hottitle_list", function (a) {
                    a.preventDefault(), a.stopPropagation(), window.parent.open("http://video.coral.qq.com/s/" + parent.cmt_id + "/review#hot")
                }), b("#mainBody").on("click", "#hot_list", function (a) {
                    a.preventDefault(), a.stopPropagation(), window.parent.open("http://video.coral.qq.com/s/" + parent.cmt_id + "/review#hot")
                }), b("#mainBody").on("click", "#newtitle_list", function (a) {
                    a.preventDefault(), a.stopPropagation(), window.parent.open("http://video.coral.qq.com/s/" + parent.cmt_id + "/review#new")
                }), b("#mainBody").on("click", "#newtitle_list2", function (a) {
                    a.preventDefault(), a.stopPropagation(), window.parent.open("http://video.coral.qq.com/s/" + parent.cmt_id + "/review#new")
                })
            }, tabsComment: function () {
                var a = this, c = this.options;
                b("#mycon").unbind().click(function () {
                    b(this).addClass("np-active"), b("#mytips").removeClass("np-active"), c.$myTips.hide(), c.$myCons.show(), 0 == b("#my-notification-list li").length && (setTimeout(function () {
                        l.loadMyComment()
                    }, 500), b("#myuserInfo").hide()), k.IframeHeight()
                }), b("#mytips").unbind().click(function () {
                    b(this).addClass("np-active"), b("#mycon").removeClass("np-active"), c.$myTips.show(), c.$myCons.hide(), 0 == b("#my-message-list li").length && ("wx" == YPlogin.logintype ? setTimeout(function () {
                            l.loadMyMessage()
                        }, 500) : l.loadMyMessage()), k.IframeHeight()
                }), "" != c.order && (b("#order a").removeClass("np-active"), b("#order a[data-sort=" + c.order + "]").addClass("np-active")), b("#order a").unbind().click(function () {
                    "time" == b(this).attr("data-sort"), b(this).hasClass("np-active") || (b("#order a").removeClass("np-active"), b(this).addClass("np-active"), b("#allComments .tipInfo").addClass("waitting").html("").show(), c.order = "time" != b(this).attr("data-sort") ? b(this).attr("data-sort") : "", b("#allComments .post-list").html(""), b("#allComments .waitting").show(), c.$loadMore.hide(), "quality" != c.order && setTimeout(function () {
                        a.hotList()
                    }, 200), setTimeout(function () {
                        a.loadMore(0, 1)
                    }, 500))
                })
            }, loadMore: function (a, c) {
                function d() {
                    0 == b("#allComments li").length && b("#allComments").children(".tipInfo").removeClass("waitting").html("暂无评论").show(), b("#allComments .post-list").length || b("#allComments").append("<ul class='post-list'></ul>")
                }

                var e = this, f = this.options;
                a = a || 0;
                var h = j.options.homePageSize;
                a && (h = 20);
                var i = f.fetchUrl + "article/" + g + "/comment?commentid=" + a + "&reqnum=" + h + "&tag=" + f.order;
                b.ajax({
                    url: i, dataType: "jsonp", beforeSend: function () {
                        e._latestTimer0 = (new Date).getTime()
                    }, error: d, success: function (c) {
                        if (0 == c.errCode) {
                            f.lastId = c.data.last;
                            (new Date).getTime();
                            c.data.retnum < c.data.reqnum || c.data.total <= j.options.homePageSize ? (b("#loadMore>span").hide(), b("#loadMore>em").removeClass("np-load-more-loading").show()) : (b("#loadMore>span").show(), b("#loadMore>em").hide()), f.$showNum.data("maxID", c.data.maxid), l(c), k.IframeHeight(), a || (c.data.reqnum < c.data.total && b("#allComments li").length > 0 && f.$loadMore.show(), f.$commentTotleNum.html("<span>" + c.data.total + "条评论</span>"), j.options.commentNumbers.html(c.data.total), b(parent.document.getElementById("cmtNum")) && b(parent.document.getElementById("cmtNum")).html(c.data.total), b(parent.document.getElementById("cmtNum2")) && b(parent.document.getElementById("cmtNum2")).html(c.data.total))
                        } else d();
                        0 == b("#allComments li").length && f.$loadMore.hide()
                    }
                });
                var l = function (a) {
                    a.data.commentid.length || 0 != b("#allComments li").length ? b("#allComments").children(".tipInfo").hide() : ("" != f.order && 1 != c && b("#order span[data-sort=time]").trigger("click"), "quality" == f.order ? b("#allComments").children(".tipInfo").removeClass("waitting").html("暂无热评").show() : b("#allComments").children(".tipInfo").removeClass("waitting").html("暂无评论").show(), f.$loadMore.hide()), b("#allComments .post-list").length || b("#allComments").append("<ul class='post-list'></ul>"), p && !b("#allComments .np-title-new").length && b("#allComments .post-list").append('<li class="np-title-new"><span class="ypcmt_tit">最新短评</span><a class="ypcmt_btn" href="javascript:;" id="newtitle_list2">我来评</a><div class="clear"></div></li>'), b.each(a.data.commentid, function (a, c) {
                        0 == c.parent || 0 == b("#comment_" + c.parent).length ? (0 == b("#comment_" + c.parent).length && 0 != c.parent ? c.classNone = "none" : c.classNone = "", b("#allComments .post-list").append(m.creatHtml(c))) : (b("#comment_" + c.parent).hasClass("postHide") ? c.classNone = "none" : c.classNone = "", b("#comment_" + c.parent + ">ul.children").append(m.creatHtml(c)))
                    }), b("#allComments .post-list .postHide").find(".replywho:first").hide(), setTimeout(function () {
                        k.IframeHeight()
                    }, 500)
                }
            }, loadNum: function () {
                var a = this.options, c = b.cookie("uid"), d = "//sync.coral.qq.com/u/" + c + "?platform=" + j.options.siteName;
                if (/^\d+$/.test(c + "")) {
                    var e = function () {
                        a.$tabFlag && b.cookie("uin") && parseInt(c) > 1e4 ? b.ajax({
                                url: d,
                                dataType: "jsonp",
                                jsonpCallback: "userNum",
                                success: function (a) {
                                    a > 0 ? b("#popMsg").html(a).show() : b("#popMsg").html("").hide(), setTimeout(function () {
                                        e()
                                    }, 3e4)
                                },
                                error: function () {
                                    setTimeout(function () {
                                        e()
                                    }, 3e4)
                                }
                            }) : setTimeout(function () {
                                e()
                            }, 3e4)
                    };
                    e()
                }
            }, changeTab: function () {
                var a = this.options;
                b(document).bind({
                    "show.visibility": function () {
                        a.$tabFlag = !0
                    }, "hide.visibility": function () {
                        a.$tabFlag = !1
                    }
                })
            }, loadreply: function (a, c) {
                var d = c ? c : "";
                b.ajax({
                    url: "//video.coral.qq.com/filmreviewr/c/replycomment/" + spid + "/" + a + "?commentid=" + d + "&reqnum=5",
                    dataType: "jsonp",
                    cache: !0,
                    success: function (c) {
                        b.each(c.data.commentid, function (c, d) {
                            b("#comment_" + a + ">.children").append(m.creatHtml(d))
                        }), c.data.hasnext ? b("#comment_" + a + ">.np-load-more").show() : b("#comment_" + a + ">.np-load-more").hide(), k.IframeHeight()
                    }
                })
            }, bindFooterEvent: function (a) {
                var c = this, d = this.options, e = b(".pop_reply"), f = b(".pop_reply a.submit"), h = b(".pop_reply textarea");
                a.delegate(".loadmore", "click", function (a) {
                    a.stopPropagation();
                    var d = b(this).parent().attr("id").split("_")[1], e = b(this).parent().find("ul li:last").attr("id").split("_")[1];
                    16 == b(this).parent().find("ul li").length ? window.parent.open("http://video.coral.qq.com/c/review/" + spid + "/" + d) : c.loadreply(d, e)
                }), a.delegate(".reply", "click", function (c) {
                    c.stopPropagation();
                    var d = this, g = c || window.event, i = b(this).parents("li.np-post").attr("id"), j = i.split("_")[1], l = b(d).parent().parent().find(".wechat").length;
                    if ("yp_box" == b(a).attr("id") || b(a).hasClass("content")) {
                        f.attr("id", "yp_" + i), h.attr("id", "yp_text_" + i);
                        var m = b(d).parent().find("a.np-btn-upvote").attr("id").split("_")[1];
                        if (!b(a).hasClass("content_dc") && 0 == b("#comment_" + m + ">ul.children").find("li").length) {
                            var o = spid, p = j;
                            if (l) {
                                var q = b(d).parent().parent().find("h3.ypbtt a").attr("href");
                                window.parent.open(q)
                            } else window.parent.open("http://video.coral.qq.com/review/c/" + o + "/" + p);
                            return
                        }
                    } else f.attr("id", "pop_" + i), h.attr("id", "pop_text_" + i);
                    var r = b(this).closest(".np-post-body").next(".children"), s = b(this).closest(".np-post");
                    r.find(".np-reply-box-footer a").removeClass("submitOn").addClass("submit").html("回复"), r.find("textarea").val(""), g.stopPropagation(), r.has(".pop_reply").length && "public_reply" == r.children().first().attr("id") ? r.children(".pop_reply").is(":visible") ? (r.children(".pop_reply").find(".commtSub").hide(), r.children(".pop_reply").slideUp("10", function () {
                                "top" == s.attr("id").split("_")[0] && r.children().remove(), r.next(".loadmore").hide(), k.IframeHeight()
                            })) : (r.children(".pop_reply").find(".commtSub").show(), r.children(".pop_reply").slideDown("100", function () {
                                k.IframeHeight()
                            }), setTimeout(function () {
                                r.children(".pop_reply").find("textarea").focus()
                            }, 200)) : (a.find(".pop_reply").slideUp("10", function () {
                            b(this).remove(), k.IframeHeight()
                        }), r.prepend(e.clone()), r.children(".pop_reply").slideDown("100", function () {
                            k.IframeHeight()
                        }), setTimeout(function () {
                            r.children(".pop_reply").find("textarea").focus()
                        }, 200)), b(".children .add_file").on("change", function () {
                        n.upLoadchange(b(this))
                    }), k.IframeHeight()
                }), a.delegate(".pop_reply", "click", function (a) {
                }), a.delegate(".submit", "click", function () {
                    var a = b(this).closest("[tid]").attr("tid");
                    if (d.replylistId = b(this).attr("id").split("_")[2], YPlogin.isLogin()) {
                        if (b(this).hasClass("np-btn-submit-loading"))return;
                        c.checkAndPublish(this.id, a), d.$insertFlag = this.id.split("_")[1]
                    } else YPlogin.doLogin()
                }), a.delegate(".pop_user_login", "click", function () {
                    YPlogin.doLogin()
                }), b("#my-notification").delegate(".upvote", "click", function () {
                    return q(b(this), "自己不能顶自己"), !1
                }), a.delegate(".upvote", "click", function (c) {
                    c.stopPropagation();
                    var e = b(this).attr("id"), f = "", h = e.split("_")[1];
                    if (d.uptId = e, b(this).hasClass("np-btn-active") || b(this).hasClass("no-upvote"))return !1;
                    if (b.cookie("uid") == b(this).parent().parent().find(".np-user").attr("post_uid"))return q(b(this), "自己不能顶自己"), !1;
                    var i = g;
                    if (b(this).closest("[tid]").length && (i = b(this).closest("[tid]").attr("tid")), f = "yp_box" == b(a).attr("id") || b(a).hasClass("content") ? "//video.coral.qq.com/article/comment/up/to/" + h + "?targetid=" + i : d.wfetchUrl + "article/comment/up/to/" + h + "?targetid=" + i, YPlogin.isLogin() && "wx" == YPlogin.logintype) {
                        var j = "&code=0&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid;
                        f = f + "?" + j
                    }
                    b.ajax({
                        url: f, dataType: "jsonp", jsonpCallback: "ding", cache: !0, success: function (a) {
                        }
                    });
                    var k = b(this).find("em"), l = parseInt(k.text());
                    k.html(l + 1), b(this).addClass("np-btn-active"), b(this).siblings(".cpvote").addClass("no-cpvote")
                }), a.delegate(".ypvote", "click", function (c) {
                    if (c.stopPropagation(), YPlogin.isLogin()) {
                        var e = b(this).attr("id"), f = "", g = e.split("_")[1];
                        if (d.uptId = e, b(this).hasClass("np-btn-active") || b(this).hasClass("no-upvote"))return !1;
                        if (b.cookie("uid") == b(this).parent().parent().find(".np-user").attr("post_uid"))return q(b(this), "自己不能顶自己"), !1;
                        var h = spid;
                        if (b(this).closest("[tid]").length && (h = b(this).closest("[tid]").attr("tid")), f = "yp_box" == b(a).attr("id") || b(a).hasClass("content") ? "//w.coral.qq.com/filmreview/up/to/" + g + "?coverid=" + h : d.wfetchUrl + "article/comment/up/to/" + g + "?targetid=" + h, YPlogin.isLogin() && "wx" == YPlogin.logintype) {
                            var i = "&code=0&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid;
                            f += i
                        }
                        b.ajax({
                            url: f, dataType: "jsonp", jsonpCallback: "ding", cache: !0, success: function (a) {
                            }
                        });
                        var j = b(this).find("em"), k = parseInt(j.text());
                        j.html(k + 1), b(this).addClass("np-btn-active"), b(this).siblings(".ycpvote").addClass("no-cpvote")
                    } else YPlogin.doLogin()
                }), a.delegate(".cpvote", "click", function (a) {
                    a.stopPropagation();
                    var c = b(this).attr("id"), e = c.split("_")[1];
                    if (d.uptId = c, b(this).hasClass("np-btn-cactive") || b(this).hasClass("no-cpvote"))return !1;
                    if (b.cookie("uid") == b(this).parent().parent().find(".np-user").attr("post_uid"))return q(b(this), "自己不能踩自己"), !1;
                    var f = g || yp_id;
                    b(this).closest("[tid]").length && (f = b(this).closest("[tid]").attr("tid"));
                    var h = d.wfetchUrl + "article/comment/up/to/" + e + "?targetid=" + f + "&uptype=1";
                    if (YPlogin.isLogin() && "wx" == YPlogin.logintype) {
                        var i = "&code=0&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid;
                        h += i
                    }
                    b.ajax({
                        url: h, dataType: "jsonp", jsonpCallback: "cai", cache: !0, success: function (a) {
                        }
                    });
                    var j = b(this).find("em"), k = parseInt(j.text());
                    j.html(k + 1), b(this).addClass("np-btn-cactive"), b(this).siblings(".upvote").addClass("no-upvote")
                }), a.delegate(".ycpvote", "click", function (c) {
                    if (c.stopPropagation(), YPlogin.isLogin()) {
                        var e = b(this).attr("id"), f = "", h = e.split("_")[1];
                        if (d.uptId = e, b(this).hasClass("np-btn-cactive") || b(this).hasClass("no-cpvote"))return !1;
                        if (b.cookie("uid") == b(this).parent().parent().find(".np-user").attr("post_uid"))return q(b(this), "自己不能踩自己"), !1;
                        var i = spid || g || yp_id;
                        if (b(this).closest("[tid]").length && (i = b(this).closest("[tid]").attr("tid")), f = "yp_box" == b(a).attr("id") || b(a).hasClass("content") ? "//w.coral.qq.com/filmreview/up/to/" + h + "?coverid=" + i + "&uptype=1" : d.wfetchUrl + "article/comment/up/to/" + h + "?targetid=" + i + "&type=1", YPlogin.isLogin() && "wx" == YPlogin.logintype) {
                            var j = "&code=0&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid;
                            f += j
                        }
                        b.ajax({
                            url: f,
                            type: "post",
                            dataType: "jsonp",
                            jsonpCallback: "ycai",
                            cache: !0,
                            success: function (a) {
                            }
                        });
                        var k = b(this).find("em"), l = parseInt(k.text());
                        k.html(l + 1), b(this).addClass("np-btn-cactive"), b(this).siblings(".ypvote").addClass("no-upvote")
                    } else YPlogin.doLogin()
                }), a.delegate(".popClick", "click", function (a) {
                    a.stopPropagation ? a.stopPropagation() : window.event && (window.event.cancelBubble = !0);
                    var c = ({uid: b(this).attr("post_uid")}, b(this).attr("post_uid"));
                    b.cookie("uid") == c && YPlogin.isLogin() ? window.parent.open("http://v.qq.com/u/comment/") : window.parent.open("http://video.coral.qq.com/review/user/" + c)
                }), a.delegate(".newcoment", "click", function () {
                    var a = b(this).attr("id").split("_")[1];
                    b("#comment_" + a + ">ul.children li .newcoment").hide(), b("#comment_" + a + ">ul.children li.undis").removeClass("undis").addClass("blueflag"), k.IframeHeight(), b(this).hide(), b("#comment_" + a).data("num", 0), b("#comment_" + a + ">ul.children li.blueflag").each(function (a, c) {
                        k.BlueLine("#" + b(this).attr("id"))
                    })
                }), a.delegate(".spreadMoreBtn", "click", function () {
                    b(this).prev().css("height", ""), b(this).prev().find("p").css("height", ""), b(this).hide(), b(this).parent().find("p").attr("data-height", ""), b(this).next(".upMoreBtn").show(), b(this).hide(), b(this).remove(), k.IframeHeight()
                }), a.delegate(".upMoreBtn", "click", function () {
                    k.ConHeight(b(this).parent()), b(this).remove(), k.IframeHeight()
                }), a.delegate(".np-con-img", "click", function () {
                    b(this).attr("data-order"), b(top.window).height(), b(top.window).width(), b(this).attr("data-height"), b(this).attr("data-width"), b(this).attr("src");
                    classTypePrve = "", classTypeNext = "";
                    var a = b(this).closest(".list_w100").attr("id"), c = top.window.document.body.scrollHeight;
                    top.window.document.documentElement.scrollTop || top.window.document.body.scrollTop;
                    if (b(top.window.document.body).find("#picPlayIframe").length) b(top.window.document.body).find("#picPlayIframe").show(), b(top.window.document.body).find("#picPlayIframe").attr({
                        "data-id": a,
                        "data-order": b(this).attr("data-order"),
                        "data-total": b(this).attr("data-total"),
                        "data-flag": "main"
                    }); else {
                        var d = '<iframe  id="picPlayIframe" data-flag="main" data-id="' + a + '" data-order=' + b(this).attr("data-order") + " data-total=" + b(this).attr("data-total") + ' src ="//v.qq.com/txyp/coralImgDom3.0.htm?' + (new Date).getTime() + '" allowTransparency="true"  frameborder="0" scrolling="no" style="width:100%;height:' + c + 'px;z-index:999999;position:fixed;top:0px;left:0px;border:none;overflow:hidden;"></iframe>';
                        b(top.window.document.body).append(d)
                    }
                })
            }, bindSubmitEvent: function () {
                var a = this, c = this.options;
                c.$loginBtn.unbind().click(function () {
                    if (YPlogin.isLogin() && "登录" != b(this).html())if (p) {
                        var c = {title: b("#yptop_title"), content: b("#top_textarea")}, d = b(".np-tip-error");
                        if (d.html("").css("color", "red"), "+标题" != c.title.val()) {
                            if ("" == b.trim(c.title.val()))return d.html("标题不能为空!").hide().fadeIn("slow"), c.title.focus(), void setTimeout(function () {
                                d.fadeOut("fast")
                            }, 2e3);
                            if (b.trim(c.title.val()).realLength() > 200)return d.html("标题不能超过100字!").hide().fadeIn("slow"), c.title.focus(), void setTimeout(function () {
                                d.fadeOut("fast")
                            }, 2e3);
                            if ("" == b.trim(c.content.val()) || "+正文" == c.content.val())return d.html("正文不能为空!").hide().fadeIn("slow"), c.content.focus(), void setTimeout(function () {
                                d.fadeOut("fast")
                            }, 2e3);
                            if (b.trim(c.content.val()).realLength() > 4e4)return d.html("正文不能超过20000字!").hide().fadeIn("slow"), c.content.focus(), void setTimeout(function () {
                                d.fadeOut("fast")
                            }, 2e3);
                            if (b.trim(c.content.val()).realLength() < 280)return d.html("正文不能少于140字!").hide().fadeIn("slow"), c.content.focus(), void setTimeout(function () {
                                d.fadeOut("fast")
                            }, 2e3);
                            a.yingPublish()
                        } else a.checkAndPublish(this.id), c.$insertFlag = "comment"
                    } else a.checkAndPublish(this.id), a.options.$insertFlag = "comment"; else YPlogin.doLogin()
                })
            }, bindDeleteEvent: function () {
                this.options;
                b("#mainBody").delegate(".delete", "click", function (a) {
                    var c = b(this), d = "popdelete", e = c.attr("id").split("_")[1];
                    YPlogin.isLogin() ? (b("#my-notification-list li.np-post:last").attr("id") == "post_" + e && (d = "popdeletee"), b("#my-notification-list li.np-post").css("z-index", "1"), b(".popdeletee").remove(), b(".popdelete").remove(), b("#post_" + e).css("z-index", "100"), c.css("position", "relative"), c.append('<div class="' + d + '"><h4>您确定要永久删除此评论？</h4><p><input class="cancel" type="button" value="取消" id="d_cancel"/><input class="confirm" type="button" value="确定" id="d_confirm"/></p></div>'), b("#d_confirm").click(function () {
                            o.postData(c.attr("id"), c.closest("[tid]").attr("tid"))
                        }), b("#d_cancel").click(function () {
                            c.find("div").remove(), c.css("position", "relative")
                        })) : YPlogin.doLogin(), a.stopPropagation()
                }), c.unbind().bind("click", function () {
                    b("#my-notification-list .delete div").remove()
                })
            }, bindReportEvent: function () {
                var a = this.options, c = b(".np-report");
                b("#mainBody").delegate(".report", "click", function () {
                    var d = b(this);
                    if (YPlogin.isLogin()) {
                        if (!b(this).find("em").length) {
                            b("#allComments .np-report").remove(), b("#allComments li.np-post").css("z-index", "1"), b(this).parent().append(c.clone().show());
                            var e = b(this).attr("id").split("report_")[1];
                            b("#" + e).css("z-index", "100"), b("#" + e).parents("li.np-post").css("z-index", "100"), b(this).attr("id").split("report_")[1] == b("#content li.np-post:last").attr("id") && b("#content li.np-post:last .np-post-body:first").height() - 37 < 303 && b("#content .np-report").css("top", "-290px"), b(this).attr("id").split("report_")[1] == b("#content li.np-post").eq(-2).attr("id") && b("#content li.np-post:last .np-post-body:first").height() + b("#content li.np-post").eq(-2).find(".np-post-body:first").height() - 37 < 303 && b("#content .np-report").css("top", "-290px"), b(this).attr("id").split("report_")[1] == b("#content li.np-post").eq(-3).attr("id") && b("#content li.np-post:last .np-post-body:first").height() + b("#content li.np-post").eq(-2).find(".np-post-body:first").height() + b("#content li.np-post").eq(-3).find(".np-post-body:first").height() - 37 < 303 && b("#content .np-report").css("top", "-290px"), b(this).parent().find(".close").bind("click", function () {
                                d.parent().find(".np-report").remove(), b("#content li.np-post").css("z-index", "1")
                            }), b(this).parent().find(".np-report-cancel").bind("click", function () {
                                d.parent().find(".np-report").remove(), d.parents(".np-post").trigger("mouseout"), b("#content li.np-post").css("z-index", "1")
                            }), b(this).parent().find("#impeach_desc").focus(function () {
                                b(this).val(""), b(this).css("color", "#333")
                            }), b(this).parent().find(".np-report-submit").bind("click", function () {
                                d.parent().find("input[name='impeach_content']:checked").length ? o.postData(d.attr("id"), d.closest("[tid]").attr("tid")) : (0 == d.parent().find(".np-report h5").find("span").length && d.parent().find(".np-report h5").append('<span id="RT">你必须选择一项才能举报!</span>'), setTimeout(function () {
                                        b("#RT").remove()
                                    }, 2e3))
                            }), a.reportId = b(this).attr("id");
                        }
                    } else YPlogin.doLogin()
                }), b("#mainBody").delegate(".np-post-body", "mouseover", function (a) {
                    var c = b(this).find(".popClick").attr("post_uid");
                    c != b.cookie("uid") && (b(".report").hide(), b(this).find(".report:first").show(), a.stopPropagation())
                }), b("#mainBody").delegate(".np-post-body", "mouseout", function (a) {
                    b(this).find(".report em").length || b(this).find(".report:first").hide(), a.stopPropagation()
                })
            }, reportInit: function () {
                var a = this.options, c = a.$allComments.find("li.np-post .reportOn");
                b.each(c, function (a, c) {
                    b(this).removeClass("reportOn"), b(this).find("em").remove()
                })
            }, yingPublish: function () {
                o.postData("yptop")
            }, checkAndPublish: function (a, c) {
                var d = a.split("_")[0], e = this.options, f = "";
                if ("yp" == d) {
                    var g = a.replace(/yp/, "yp_text");
                    f = b("#" + g)
                } else {
                    var h = a.replace(/pop/, "pop_text");
                    f = b("#" + h)
                }
                if ("top" == d) {
                    if (n.isUpImg("insertPicList"))return !1;
                    f = e.$top_textarea
                } else if (n.isUpImg("insertPicList_reply"))return;
                0 == b.trim(f.val()).length || f.val() == e.topContentTips ? seajs.use("coral.callback", function (b) {
                        b.pubCallback(a, {ret: 1, error2show: "请输入内容！"})
                    }) : b.trim(f.val()).realLength() > 2e3 ? alert("超过1000个字了") : YPlogin.isLogin() ? ("top" == d && e.$loginBtn.addClass("np-btn-submit-loading"), o.postData(a, c)) : YPlogin.doLogin()
            }, popupIframeLayer: function (a) {
                b(top.document.body).append('<iframe src ="http://www.qq.com/coral/coralBeta3/coralPopDom3.0.htm" allowTransparency="true"  frameborder="0" scrolling="no" style="width:100%;height:100%;z-index:999999;position:fixed;_position:absolute;*+position:fixed;_left:100px;top:0px;left:0px;border:none;overflow:hidden;" id="np-pop-iframe" data-id = ' + a + "></iframe>"), /msie 6/i.test(navigator.userAgent) && 0 != b(top.document.body).find("#np-pop-iframe").length && b(top.document.body).find("#np-pop-iframe").css("position", "absolute")
            }, bindOtherEvents: function () {
                var a = this.options;
                a.$top_textarea.height(60), a.$top_textarea.css("padding", "10px"), b("#np-reply-box").delegate("a.change", "click", function () {
                    j.options.changeFlag = 1, YPlogin.doLogin()
                }), a.$top_textarea.focus(function () {
                    b(this).parent().parent().addClass("checkon")
                }), a.$top_textarea.blur(function () {
                    b(this).parent().parent().removeClass("checkon")
                }), a.$myCowComment.unbind().bind("click", function () {
                    YPlogin.isLogin() ? (b("#mytips").trigger("click"), "none" != b("#popMsg").css("display") && (b("#my-message .tipInfo").hide(), b("#popMsg").html("").hide(), b("#mytips").trigger("click")), window.parent.open("http://v.qq.com/u/comment/")) : (b("#my-message .tipInfo").hide(), b("#my-notification .tipInfo").hide(), YPlogin.doLogin())
                }), a.$myAllComment.unbind().bind("click", function () {
                    b(this).addClass("np-active"), a.$myCowComment.removeClass("np-active"), a.$allComments.show(), a.$myComments.hide(), k.IframeHeight()
                })
            }, initPostFrame: function () {
                var a = this;
                this.options;
                b("#content").delegate("." + j.options.popupLink, "click", function (c) {
                    var d = (a.options.$loginFlag.data("nick"), a.options.$loginFlag.data("userPic"), b(this)), e = d.attr("targetid"), f = d.attr("commentid");
                    window.open("http://video.coral.qq.com/review/d/" + e + "/" + f)
                })
            }
        }
    }(jQuery), c.exports = d
}), String.prototype.realLength = function () {
    return this.replace(/[^\x00-\xff]/g, "**").length
}, define("coral.dom", function (a, b, c) {
    var d = (a("coral.config"), a("coral_rte")), e = {
        options: {
            popupLink: "np-postlink",
            defaultHeadPic: "//mats.gtimg.com/www/coral2.0/images/g.gif"
        }, creatHtml: function (b, c, e) {
            if ("ypp" == e && 1280 == b.richtype)return void parent.window.open(b.content, "_self");
            var f = "", g = a("coral.config"), h = a("coral.base"), i = a("coral.score"), j = h.FormatTime, k = b.userinfo.head ? b.userinfo.head.replace("http:", "") : this.options.defaultHeadPic, l = (b.userinfo ? b.userinfo.commentnum : "", b.userinfo.upnum, b.userinfo.nick), m = (b.userinfo.region.replace(/:/g, " "), c ? c : ""), n = "", o = "", p = "", q = "comment_", r = "", s = "popClick", t = "v_qq_com.comment", u = "", v = "", w = "", x = "", y = "", z = "", A = "", B = "", C = 1280 == b.richtype, D = !0;
            f = b.abstract && "" != b.abstract ? b.abstract : b.content.replace(/\n+/g, "<br/><br/>"), 1 == b.userinfo.specialidentity && (x = '<a href="http://v.qq.com/txyp/7thart/index.htm" class = "np-btn-sf" title="第七团" target="_blank"></a>'), 1 == g.options.film && (t = "film_direct.comment"), 1 == g.options.client && (t = "service.comment"), "msg" == e && (q = "msg_", n = ""), "top" == e && (q = "top_", n = "topIco np-label-digest", o = "topAll"), 0 == b.rep && (p = "topno"), b.hotscale > 0 || b.title ? r = "" : (b.userinfo.userid != $.cookie("uid") && g.options.reportBtn && (r = "<a href='javascript:void(0)' class='np-btn np-btn-report report' id='report_" + q + b.id + "'>举报</a>"), n = "");
            var E = "", F = g.options.popupInfo;
            1280 == b.richtype && (F = "", s = ""), 10001 == b.replyuserid && (s = "");
            var G = "", H = "", I = "";
            (b.rep || b.repnum) && (I = this.creatPostLink(b)), b.rep && (H = "(<em>" + b.rep + "</em>)");
            var J = 0;
            if (void 0 !== b.poke && (J = b.poke), cpvote = "yp" == e || "ypp" == e ? '<a href="javascript:void(0)" class="np-btn np-btn-cvote ycpvote ' + (b.uped ? " no-cpvote" : "") + (b.poked ? " np-btn-cactive" : "") + '" id=cpvote_' + b.id + ">没用(<em>" + J + "</em>)</a>" : '<a href="javascript:void(0)" class="np-btn np-btn-cvote cpvote" id=cpvote_' + b.id + ">" + g.options.cmt_content + "(<em>" + J + "</em>)</a>", "yp" == e && b.title ? (y = 1280 == b.richtype ? '<h3 class="ypbtt wechattitle" title="' + b.title + '" data-id = "' + b.id + '"><span><a href="' + b.content + '" target="_blank">' + b.title + '</a></span><em class="wechat"></em></h3>' : '<h3 class="ypbtt" title="' + b.title + '" data-id = "' + b.id + '"><span>' + b.title + "</span></h3>", H = b.orireplynum ? "(<em>" + b.orireplynum + "</em>)" : "(<em>0</em>)", w = "有用") : "ypp" == e && (b.orireplynum && (H = "(<em>" + b.orireplynum + "</em>)"), y = "", v = "np-parent-id", f = b.content.replace(/\n+/g, "<br/><br/>"), b.video && (f = d.transform.transVideo(f, b.video)), u = '<div class="pop_reply np-reply-box np-reply-box-inline" id="public_reply"><div class="textarea np-reply-box-content"><textarea tabindex="1" autocomplete="off" name="content" accesskey="u" id="yp_text_comment_' + b.id + '"style="height: 60px; padding: 10px;"></textarea></div><div class="commtSub" id="p_login_btn"><div class="np-reply-box-footer"><div class="np-reply-box-info" style="display:none"><span class="tips"></span></div><a href="javascript:void(0)" class="submit np-btn np-btn-submit" id="yp_comment_' + b.id + '" hidefocus="true">登录</a></div></div></div>', w = "有用"), A = 256 == (256 & b.richtype) && "0" == b.parent || 1280 == b.richtype ? "ypvote" : "upvote", 1 == b.uped && (B = "np-btn-active"), 256 == (256 & b.richtype) && "0" !== b.parent ? (z = '<a href="javascript:void(0)" class="np-btn np-btn-upvote upvote' + (b.poked ? " no-upvote" : "") + '" id=upvote_' + b.id + ' style="display:none">' + w + "(<em>" + b.up + "</em>)</a>", H = "", cpvote = "") : z = '<a href="javascript:void(0)" class="np-btn np-btn-upvote ' + (b.poked ? " no-upvote " : "") + B + " " + A + '" id=upvote_' + b.id + ">" + w + "(<em>" + b.up + "</em>)</a>", "" != b.content || 0 != b.rep || 0 != b.isdeleted || void 0 != b.picture) {
                D = C ? "" : '<a href="javascript:void(0)" class="np-btn np-btn-reply reply">回复' + H + "</a>";
                var K = "", L = "", M = "", N = "", O = "";
                if (1 == g.options.huiyuan && (1 == b.userinfo.hwvip && (1 == b.userinfo.hwannual ? (K = "hyy hyy_nian", L = "huiyuan huiyuan_nian p_nian" + b.userinfo.hwlevel) : (K = "hyy", L = "huiyuan p" + b.userinfo.hwlevel)), 1 == b.replyhwvip && (O = "hyy", 1 == b.replyhwannual ? (O = "hyy hyy_nian", N = "huiyuan huiyuan_nian p_nian" + b.replyhwlevel) : (O = "hyy", N = "huiyuan p" + b.replyhwlevel)), 1 != g.options.client && "none" != b.classNone || (M = "vhidden")), 1 == b.isdeleted) G += '<li class="np-post" id="' + q + b.id + '">', G += '<img class="np-avatar" src="' + k + '"alt="头像"/>', G += '<div class="np-post-body">', G += '<div class="np-post-header">', G += '<a href="javascript:void(0)" class="np-user">' + l + "</a>", G += 0 == b.parent ? " " : '<a href="javascript:void(0)" post_uid = "' + b.replyuserid + '" class="replywho np-icon-reply-weak np-user ' + s + '" style="display:' + b.classNone + '">' + b.replyuser + "</a>", G += '<span class="np-time" data="' + b.time + '" >' + j(b.time) + "</span>", G += "</div>", G += '<div class="np-post-content padding-b"><p>此贴已被用户删除</p></div>', G += "</div>", G += '<ul class="children"></ul>', G += "</li>"; else if (2 == b.checkstatus && 0 != b.rep) G += "<li class='postHide' id=" + q + b.id + "><ul class='children'></ul></li>"; else {
                    var P = "", Q = "";
                    if (!window.location.href.match("coralCommentNew4.0") && void 0 != b.picture && b.picture.length) {
                        var R = "";
                        P += '<div  class="yp_imgs ' + ("ypp" == e ? "non" : "") + '" ><ul class="list_w100" id="pic_' + b.id + '" >';
                        for (var S = 0, T = b.picture.length; S < T; S++)R = b.picture[S].url.match("p.qpic.cn/vshpic") ? b.picture[S].url.replace("/0", "/300") : b.picture[S].url + "/100", Q = b.picture[S].width > b.picture[S].height ? "height=100" : "width=100", P += '<li class="list_item"><a href="javascript:void(0)" class="figure"><img data-order="' + S + '" data-total="' + T + '" data-width="' + b.picture[S].width + '" data-height="' + b.picture[S].height + '" ' + Q + ' class="np-con-img" src="' + R + '" /></a></li>';
                        P += "</ul></div>"
                    }
                    if (256 == (256 & b.richtype) && "0" == b.parent && 1 != b.ypReplyMarkNoShareBtn) {
                        var U = "";
                        U = window.location.href.match("coralCommentNew4.0") ? '<div class="share-container"><a href="javascript:void(0)" class="np-btn np-btn-share share">分享</a><div class="share-box"><div class="share-up"></div><ul class="mod_share_list share_list_m2"><li class="item"><a href="javascript:;" _hot="cover.share.click.wechat" tid="wechat" data-tid="wechat" class="icon_wechat" title="微信">微信</a></li><li class="item"><a href="javascript:;" _hot="cover.share.click.qq" tid="qq" data-tid="qq" class="icon_qq" title="QQ">QQ</a></li><li class="item"><a href="javascript:;" class="icon_qzone" _hot="cover.share.click.qzone" tid="qzone" data-tid="qzone" title="Qzone">Qzone</a></li><li class="item"><a href="javascript:;" class="icon_weibo" _hot="cover.share.click.sina" tid="sinaweibo" data-tid="sinaweibo" title="微博">微博</a></li></ul></div></div>' : '<a href="javascript:void(0)" class="np-btn np-btn-share share">分享</a><ul class="mod_share_list share_list_m2"><li class="item"><a href="javascript:;" _hot="cover.share.click.wechat" tid="wechat" data-tid="wechat" class="icon_wechat" title="微信">微信</a></li><li class="item"><a href="javascript:;" _hot="cover.share.click.qq" tid="qq" data-tid="qq" class="icon_qq" title="QQ">QQ</a></li><li class="item"><a href="javascript:;" class="icon_qzone" _hot="cover.share.click.qzone" tid="qzone" data-tid="qzone" title="Qzone">Qzone</a></li><li class="item"><a href="javascript:;" class="icon_weibo" _hot="cover.share.click.sina" tid="sinaweibo" data-tid="sinaweibo" title="微博">微博</a></li></ul>'
                    } else var U = "";
                    var V = "";
                    if (256 == (256 & b.richtype) && cherry.login.isLogin() && $.cookie("uid") == b.userinfo.userid && "ypp" == e) {
                        var W = "http://video.coral.qq.com/review/cm/" + parent.coverid + "/" + b.id;
                        "wx" == YPlogin.logintype && (W = "http://video.coral.qq.com/review/cm/" + parent.coverid + "/" + b.id + "?logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid), V = '<a href="' + W + '" class="np-btn-update update" target="_blank">修改</a>'
                    }
                    var X = "", Y = "", Z = "";
                    "yp" == e && (1280 !== b.richtype ? (Y = '<a href="javascript:void(0)" class="shows_btn shows_btn_show" title="">&nbsp;展开 <i></i></a>', Z = '<div class="shows_btn_hide_wrap" ><a href="javascript:void(0)" class="shows_btn shows_btn_hide" title="">&nbsp;收起 <i></i></a></div>', X = b.content, X = X.replace(/src/g, "data-src").replace(/\n+/g, "<br/><br/>"), b.video && (X = d.transform.transVideo(X, b.video)), X = '<div class="yp_con" style="display:none;">' + X + Z + "</div>") : Y = '<a href="' + b.content + '" target="_blank" class="shows_btn">&nbsp;查看原文</a>', f = '<span class="yp_abstract">' + f + Y + "</span>"), G += '<li class="np-post ' + m + " " + n + " " + o + " " + p + " " + E + " " + v + '" id="' + q + b.id + '"><div class="np-tip-newpost"></div><img class="np-avatar ' + F + '" post_uid ="' + b.userinfo.userid + '" src="' + k + '"alt="头像" onerror="errorImg(this)"><div class="np-post-body"><div class="np-post-header">' + r + '<span class="' + K + '"><a href="javascript:void(0)" title="' + l + '" class="np-user ' + F + ' " post_uid = "' + b.userinfo.userid + '" style="' + (1280 == b.richtype ? "cursor: default" : "") + '" >' + l + '</a><a href="http://film.qq.com/vip.html?ptag=' + t + '" target = "_blank" class="' + L + '" title="会员尊享红名特权"></a>' + x + "</span>" + (0 == b.parent ? '<a href="javascript:void(0)" class="replywho np-icon-reply-weak np-user" style="display:none">' + b.replyuser + "</a>" : '<span class="' + O + " " + M + '"><a href="javascript:void(0)" title="' + b.replyuser + '" post_uid = "' + b.replyuserid + '" class="replywho np-icon-reply-weak np-user ' + s + ' " style="display:' + b.classNone + '">' + b.replyuser + '</a><a href="http://film.qq.com/vip.html?ptag=' + t + '" target = "_blank" class="' + N + '"></a></span>') + '<span class="np-time" data="' + b.time + '" >' + j(b.time) + "</span>" + i.getScoreDom(b.score / 2) + '</div><div class="np-post-content">' + y + f + X + "</div>" + P + '<div class="np-post-footer">' + z + cpvote + D + V + U + ("topno" != p && "topAll" == o ? I : "") + '<a href="javascript:void(0)" class="np-btn np-btn-newreply"></a></div></div><ul class="children">' + u + "</ul></li>"
                }
                return G
            }
        }, creatPostLink: function (a) {
            var b = this.options;
            return "<a class='" + b.popupLink + " np-btn' targetid='" + a.targetid + "' commentid='" + a.id + "' parentid='" + a.parent + "' href='javascript:void(0)'><img src='//mats.gtimg.com/www/niuping2013/postframe/transparent.gif' />查看回复(" + (a.rep ? a.rep : a.repnum) + ")</a>"
        }
    };
    c.exports = e
}), define("coral.post", function (a, b, c) {
    var d = d || parent.cmt_id, e = parent.c_id, f = a("coral.login"), g = a("coral.config"), h = a("coral_rte"), i = parent.coverid, j = cherry.login, k = {
        options: {
            dataImgObj: "[]",
            topCallback: "parent.topCallback",
            popCallback: "parent.popCallback",
            ypCallback: "parent.ypCallback",
            yplCallback: "parent.yplCallback",
            ypupCallback: "parent.ypupCallback",
            yptopCallback: "parent.yptopCallback",
            reportCallback: "parent.reportCallback",
            deleteCallback: "parent.deleteCallback",
            $top_textarea: $("#top_textarea"),
            wfetchUrl: "//w.coral.qq.com/"
        }, postData: function (a, b) {
            var c = this.options;
            this._pubTimer0 = (new Date).getTime();
            var e, k = f.generateToken(f.getKey()), l = a.replace(/pop/, "pop_text"), m = a.replace(/yp/, "yp_text"), n = a.split("_")[2], o = a.split("_")[0], p = a.split("_")[2], q = (a.split("_")[1], "");
            if (("top" == o || "pop" == o) && ("top" == o ? e = $(".insert_piclist img") : "pop" == o && (e = $("#" + a.replace(/pop_/, "")).find(".insert_piclist img")), e.length > 0)) {
                q += "[";
                for (var r = 0, s = e.length; r < s; r++)r > 0 && (q += ","), q += e.eq(r).attr("data");
                q += "]"
            }
            c.dataImgObj = q;
            var t = $("input[name='impeach_content']:checked").length ? $("input[name='impeach_content']:checked").val() : " ", u = $("#" + a).parent().find('input[name="impeach_desc"]').val();
            if ("top" == o) "wx" == j.logintype ? this.submitForm({
                    targetid: d,
                    type: 1,
                    format: "SCRIPT",
                    callback: c.topCallback,
                    content: $.trim(c.$top_textarea.val()),
                    _method: "put",
                    g_tk: k,
                    code: 0,
                    source: g.options.columSource,
                    subsource: g.options.columsubSource,
                    logintype: 1,
                    openid: j.openid,
                    access_token: j.access_token,
                    appid: j.appid,
                    picture: q
                }) : this.submitForm({
                    targetid: d,
                    type: 1,
                    format: "SCRIPT",
                    callback: c.topCallback,
                    content: $.trim(c.$top_textarea.val()),
                    _method: "put",
                    g_tk: k,
                    code: 0,
                    source: g.options.columSource,
                    subsource: g.options.columsubSource,
                    picture: q
                }); else if ("ypup" == o) {
                var v = h.filter.filterContent(), w = h.filter.getImgsInfo(), x = h.filter.getFilmsInfo();
                "wx" == j.logintype ? this.submitForm({
                        coverid: i,
                        type: 1,
                        format: "SCRIPT",
                        callback: c.ypupCallback,
                        title: $.trim($("#yp_title").val()),
                        content: encodeURIComponent(v),
                        _method: "put",
                        g_tk: k,
                        code: 2,
                        source: 9,
                        tag: 1,
                        logintype: 1,
                        openid: j.openid,
                        access_token: j.access_token,
                        appid: j.appid,
                        picture: w,
                        video: x
                    }, "ypup") : this.submitForm({
                        coverid: i,
                        type: 2,
                        format: "SCRIPT",
                        callback: c.ypupCallback,
                        title: $.trim($("#yp_title").val()),
                        content: encodeURIComponent(v),
                        _method: "put",
                        g_tk: k,
                        code: 2,
                        source: 9,
                        tag: 1,
                        picture: w,
                        video: x
                    }, "ypup")
            } else if ("ypl" == o) {
                var v = h.filter.filterContent(), w = h.filter.getImgsInfo(), x = h.filter.getFilmsInfo();
                "wx" == j.logintype ? this.submitForm({
                        coverid: i,
                        type: 1,
                        format: "SCRIPT",
                        callback: c.yplCallback,
                        content: encodeURIComponent(v),
                        title: $.trim($("#yp_title").val()),
                        _method: "put",
                        g_tk: k,
                        code: 2,
                        tag: 1,
                        logintype: 1,
                        openid: j.openid,
                        access_token: j.access_token,
                        appid: j.appid,
                        picture: w,
                        video: x
                    }, a) : this.submitForm({
                        coverid: i,
                        type: 2,
                        format: "SCRIPT",
                        callback: c.yplCallback,
                        content: encodeURIComponent(v),
                        title: $.trim($("#yp_title").val()),
                        _method: "put",
                        g_tk: k,
                        code: 2,
                        tag: 1,
                        picture: w,
                        video: x
                    }, a)
            } else"yptop" == o ? "wx" == j.logintype ? this.submitForm({
                        coverid: parent.window.COVER_INFO.id,
                        type: 1,
                        format: "SCRIPT",
                        callback: c.yptopCallback,
                        content: $("#top_textarea").val(),
                        title: $.trim($("#yptop_title").val()),
                        _method: "put",
                        g_tk: k,
                        code: 0,
                        logintype: 1,
                        openid: j.openid,
                        access_token: j.access_token,
                        appid: j.appid
                    }, a) : this.submitForm({
                        coverid: parent.window.COVER_INFO.id,
                        type: 1,
                        format: "SCRIPT",
                        callback: c.yptopCallback,
                        content: $("#top_textarea").val(),
                        title: $.trim($("#yptop_title").val()),
                        _method: "put",
                        g_tk: k,
                        code: 0
                    }, a) : "pop" == o ? ($("#" + a).html("").removeClass("submit").addClass("np-btn-submit-loading"), "wx" == j.logintype ? this.submitForm({
                            targetid: b || d,
                            type: 1,
                            format: "SCRIPT",
                            callback: c.popCallback,
                            content: $.trim($("#" + l).val()),
                            _method: "put",
                            g_tk: k,
                            code: 0,
                            source: g.options.columSource,
                            subsource: g.options.columsubSource,
                            picture: q,
                            logintype: 1,
                            openid: j.openid,
                            access_token: j.access_token,
                            appid: j.appid
                        }, n) : this.submitForm({
                            targetid: b || d,
                            type: 1,
                            format: "SCRIPT",
                            callback: c.popCallback,
                            content: $.trim($("#" + l).val()),
                            _method: "put",
                            g_tk: k,
                            code: 0,
                            source: g.options.columSource,
                            subsource: g.options.columsubSource,
                            picture: q
                        }, n)) : "yp" == o ? ($("#" + a).html("").removeClass("submit").addClass("np-btn-submit-loading"), "wx" == j.logintype ? this.submitForm({
                                coverid: b || i,
                                type: 1,
                                format: "SCRIPT",
                                callback: c.ypCallback,
                                content: $("#" + m).val(),
                                _method: "put",
                                g_tk: k,
                                code: 0,
                                source: g.options.columSource,
                                subsource: g.options.columsubSource,
                                picture: q,
                                logintype: 1,
                                openid: j.openid,
                                access_token: j.access_token,
                                appid: j.appid
                            }, a) : this.submitForm({
                                coverid: b || i,
                                type: 1,
                                format: "SCRIPT",
                                callback: c.ypCallback,
                                content: $("#" + m).val(),
                                _method: "put",
                                g_tk: k,
                                code: 0,
                                source: g.options.columSource,
                                subsource: g.options.columsubSource,
                                picture: q
                            }, a)) : "report" == o ? "wx" == j.logintype ? this.submitForm({
                                    targetid: b || d || parent.yp_id,
                                    type: t,
                                    desc: u,
                                    enterapp: "web",
                                    _method: "put",
                                    commentid: p,
                                    format: "SCRIPT",
                                    g_tk: k,
                                    callback: c.reportCallback,
                                    logintype: 1,
                                    openid: j.openid,
                                    access_token: j.access_token,
                                    appid: j.appid
                                }, o) : this.submitForm({
                                    targetid: b || d || parent.yp_id,
                                    type: t,
                                    desc: u,
                                    enterapp: "web",
                                    _method: "put",
                                    commentid: p,
                                    format: "SCRIPT",
                                    g_tk: k,
                                    callback: c.reportCallback
                                }, o) : "delete" == o && ("wx" == j.logintype ? this.submitForm({
                                    targetid: b || d,
                                    _method: "delete",
                                    format: "SCRIPT",
                                    g_tk: k,
                                    callback: c.deleteCallback,
                                    logintype: 1,
                                    openid: j.openid,
                                    access_token: j.access_token,
                                    appid: j.appid
                                }, a) : this.submitForm({
                                    targetid: b || d,
                                    _method: "delete",
                                    format: "SCRIPT",
                                    g_tk: k,
                                    callback: c.deleteCallback
                                }, a))
        }, submitForm: function (a, b) {
            var c = this.options, d = "";
            d = b ? "report" == b || "msg" == b ? "//w.coral.qq.com/report/comment/0" : "em" == b.split("_")[0] || "am" == b.split("_")[0] ? c.wfetchUrl + "article/comment/up/to/" + b.split("_")[1] : "delete" == b.split("_")[0] ? "//w.coral.qq.com/article/comment/" + b.split("_")[1] : "yp" == b.split("_")[0] ? "//w.coral.qq.com/filmreview/comment/to/" + b.split("_")[2] : "ypl" == b.split("_")[0] ? "//w.coral.qq.com/filmreview/comment/" : "yptop" == b.split("_")[0] ? "//w.coral.qq.com/filmreview/comment/" : "ypup" == b ? "//w.coral.qq.com/filmreview/comment/modify/" + e : c.wfetchUrl + "article/comment/to/" + b : c.wfetchUrl + "article/comment/";
            var f = "post_iframe";
            $("#post_iframe").length || $("body").append('<iframe id="post_iframe" name="post_iframe" style="display:none"><script type="text/javascript">document.domain = "qq.com";</script></iframe>');
            var g = $("#_messageform").length ? $("#_messageform").attr("action", d).empty() : $('<form action="' + d + '" method="post" target="' + f + '" id="_messageform" style="display:none;"></form>').appendTo($("body"));
            for (name in a)g.append($('<input name="' + name + '" type="hidden" value="" />').val(a[name]));
            g.submit()
        }
    };
    c.exports = k
}), define("coral_rte", function (a, b, c) {
    var d = a("coral.login");
    document.domain = "qq.com", window.CORAL_RTE = {
        options: {
            g_tk: "",
            $title: $("#yp_title"),
            $content: $("#yp_post_text"),
            $postBtn2: $("#ypl_post_btn2"),
            $g_tk: $("#g_tk"),
            maxImgsNum: 20,
            maxFilmsNum: 20,
            maxImgSize: 5,
            imgUploadExt: "jpg,jpeg,gif,png"
        }, init: function () {
            this.creatRte(), cherry.login.init()
        }, creatRte: function () {
            window.coral_rte = UE.getEditor("container", {})
        }, clearRte: function () {
            coral_rte && coral_rte.setContent("")
        }, setRteVale: function (a) {
            coral_rte && coral_rte.ready(function () {
                coral_rte.setContent(a)
            })
        }, getRteVale: function () {
            if (coral_rte)return coral_rte.getContent()
        }, getRteText: function () {
            if (coral_rte)return coral_rte.getContentTxt()
        }, getImgsNum: function () {
            var a = this.getRteVale(), b = (a.match(/<img/g) || []).length;
            return b
        }, getFilmsNum: function () {
            var a = this.getRteVale(), b = (a.match(/<iframe.*?(?:>|>)<\/iframe>/gi) || []).length;
            return b
        }, getFocus: function () {
            coral_rte && coral_rte.focus()
        }, getTK: function () {
            var a = d.generateToken(d.getKey());
            return a || ""
        }, setTK: function (a) {
        }, checkLogin: function () {
            return !!cherry.login.isLogin()
        }, dologin: function () {
            cherry.login.doLogin()
        }, filter: {
            getImgsInfo: function () {
                var a = [], b = "[", c = "", d = /<img.*?(?:>|\/>)/gi, e = /src=[\'\"]?([^\'\"]*)[\'\"]?/i, f = /data-width=[\'\"]?([^\'\"]*)[\'\"]?/i, g = /data-height=[\'\"]?([^\'\"]*)[\'\"]?/i, h = CORAL_RTE.getRteVale();
                if (a = h.match(d) || [], !a || a.length < 1)return "";
                for (var i = 0; i < a.length; i++)c = "{", c += '"url":"' + a[i].match(e)[1].slice(0, -2) + '",', c += '"width":' + a[i].match(f)[1] + ",", c += '"height":' + a[i].match(g)[1] + "}", b += c + (i < a.length - 1 ? "," : "");
                return b += "]"
            }, getFilmsInfo: function () {
                var a = [], b = "", c = /<iframe.*?(?:>|>)<\/iframe>/gi, d = /data-cid=[\'\"]?([^\'\"]*)[\'\"]?/i, e = CORAL_RTE.getRteVale();
                a = e.match(c) || [];
                for (var f = 0; f < a.length; f++)b += a[f].match(d)[1] + ",";
                return b.slice(0, -1)
            }, filterContent: function () {
                var a = /<iframe[^>]*(data-cid=['"]([^'"]*)['"])[^>]*><\/iframe>/gi, b = CORAL_RTE.getRteVale();
                return b.replace(a, "[m $2]")
            }
        }, transform: {
            transVideo: function (a, b) {
                if (!b || b.length <= 0)return a;
                for (var a = a, c = b, d = "//v.qq.com/txyp/txypV_3/coral_ret_insert.htm?", e = 0; e < c.length; e++) {
                    var f = new RegExp("\\[m " + c[e].videoid + "\\]", "gi"), g = d + "cid=" + encodeURIComponent(c[e].videoid) + "&title=" + encodeURIComponent(c[e].title) + "&c=" + encodeURIComponent(c[e].typename) + "&year=" + encodeURIComponent(c[e].year) + "&area=" + encodeURIComponent(c[e].areaname) + "&director=" + encodeURIComponent(c[e].director) + "&playurl=" + encodeURIComponent(c[e].playurl) + "&language=" + encodeURIComponent(c[e].langue) + "&tag=" + encodeURIComponent(c[e].subtype) + "&imgsrc=" + encodeURIComponent(c[e].vertpicurl), h = "<iframe data-title='" + c[e].title + "' data-cid='" + c[e].videoid + "' src='" + g + "' frameborder='0' scrolling='no' class='coral_ret_insertfilm' ></iframe>";
                    a = a.replace(f, h)
                }
                return a = a.replace(/\[m \w+\]/gi, "").replace(/<p><\/p>/gi, "")
            }
        }
    }, c.exports = CORAL_RTE
}), define("coral.img", function (a, b, c) {
    var d, e = a("coral.login"), f = a("coral.base"), g = {
        upLoadchange: function (a) {
            console.log(YPlogin.isLogin());
            if (!YPlogin.isLogin())return void YPlogin.doLogin();
            var b, c;
            if (a.closest(".children").length ? (a.closest(".children").find("#insertPicList_reply").show(), b = a.closest(".children").find("#insertPicList_reply"), c = a.closest(".np-post").attr("id"), setTimeout(function () {
                        coralComment.iframeHeight()
                    }, 600)) : ($("#insertPicList").show(), b = $("#insertPicList"), c = "np-reply-box"), !(b.find("img").length >= 4)) {
                if ("" != a.val()) {
                    if (!/\.(gif|jpg|jpeg|png)$/i.test(a.val()))return b.find(".insert_piclist").append('<li style="padding-top:20px;color:red" class="upImgInfo">图片类型必须是.gif/.jpg/.png</li>'), setTimeout(function () {
                        b.find(".upImgInfo").fadeOut().remove()
                    }, 3e3), a.val(""), !1;
                    a.parent().find("input[name=g_tk]").val(e.generateToken(e.getKey())), a.parent().find("input[name=thrdes]").val(c), "wx" == YPlogin.logintype && (a.parent().append('<input name="logintype" type="hidden" value="1">'), a.parent().append('<input name="openid" type="hidden" value="' + YPlogin.openid + '">'), a.parent().append('<input name="access_token" type="hidden" value="' + YPlogin.access_token + '">'), a.parent().append('<input name="appid" type="hidden" value="' + YPlogin.appid + '">')), a.parent().submit(), a.val(""), b.find(".add_pic").unbind().html("").addClass("icon_loading_pic"), clearTimeout(d), d = setTimeout(function () {
                        "+" != b.find(".add_pic").text() && (b.find(".insert_piclist").append('<li style="padding-top:20px;color:#f30"  class="upImgInfo">出错了！图片必须是小于5M的.gif/.jpg/.png</li>'), setTimeout(function () {
                            b.find(".upImgInfo").fadeOut().remove()
                        }, 3e3)), b.find(".add_pic").removeClass("icon_loading_pic"), b.find(".add_pic").html('<i class="add">+</i>')
                    }, 2e4)
                }
                f.IframeHeight()
            }
        }, upLoadImg: function () {
            var a = this;
            this.options;
            $("body").delegate(".upimgbox", "mouseenter", function () {
                jQuery(this).find(".iconbtn").fadeIn()
            }), $("body").delegate(".upimgbox", "mouseleave", function () {
                jQuery(this).find(".iconbtn").fadeOut()
            }), $("body").delegate(".imgRemove", "click", function () {
                jQuery(this).closest(".insert_piclist").find("img").length <= 4 && jQuery(this).closest(".insert_piclist").find(".upAddPic").show(), jQuery(this).closest(".children").length ? jQuery(this).closest(".children").find(".sybol_pic").show() : jQuery(this).closest("#commentArea").length && jQuery(this).closest("#commentArea").find(".sybol_pic").show(), jQuery(this).closest("li").remove()
            }), $("body").delegate(".imgLeft", "click", function () {
                var a = jQuery(this).parent(), b = a.prev("li");
                0 != b.length && a.insertBefore(b)
            }), $("body").delegate(".imgRight", "click", function () {
                var a = jQuery(this).parent(), b = a.next("li:not(.upAddPic)");
                0 != b.length && a.insertAfter(b)
            }), $("body").delegate(".add_file", "click", function () {
                if (!YPlogin.isLogin())return YPlogin.doLogin(), !1;
                var b;
                return b = $(this).closest(".children").length ? "insertPicList_reply" : "insertPicList", !a.isUpImg(b) && void 0
            }), $(".add_file").on("change", function () {
                a.upLoadchange($(this))
            })
        }, isUpImg: function (a) {
            var b = $("#" + a);
            return "+" != b.find(".add_pic").text() && (b.find(".upImgInfo").length || b.find(".insert_piclist").append('<li style="padding-top:20px;color:red" class="upImgInfo">图片正在上传中！</li>'), setTimeout(function () {
                    b.find(".upImgInfo").fadeOut().remove()
                }, 3e3), !0)
        }, upLoadCallback: function (a) {
            var b = jQuery("#" + a.data.thrdes);
            if (0 == a.errCode) {
                b.find(".insert_piclist").data("dataImg", a.data.picture);
                var c = '<li class="list_item upimgbox"><img width=44 height=44 data=\'{"url":"' + a.data.picture[0].url + '","width":' + a.data.picture[0].width + ',"height":' + a.data.picture[0].height + "}' src=\"" + a.data.picture[0].url + '/100" alt="图片"><b class="iconbtn imgRemove" style="">x</b><b class="iconbtn imgLeft"  style="">←</b><b class="iconbtn imgRight" style="">→</b></li>';
                b.find(".upAddPic").before(c)
            } else 26 == a.errCode ? (b.find(".insert_piclist").append('<li style="padding-top:20px; color:red" class="upImgInfo">图片不能大于5M！</li>'), setTimeout(function () {
                    b.find(".upImgInfo").fadeOut().remove()
                }, 3e3)) : (b.find(".insert_piclist").append('<li style="padding-top:20px; color:red" class="upImgInfo">上传出错！</li>'), setTimeout(function () {
                    b.find(".upImgInfo").fadeOut().remove()
                }, 3e3));
            a.data.thrdes && (jQuery("#" + a.data.thrdes + " .add_pic").html("+").removeClass("icon_loading_pic"), jQuery("#" + a.data.thrdes + " .insert_piclist img").length >= 4 && (jQuery("#" + a.data.thrdes + " .upAddPic").hide(), jQuery("#" + a.data.thrdes + " .sybol_pic").hide()))
        }
    };
    c.exports = g
}), define("coral.score", function (a, b, c) {
    var d = {
        scoreHtml: "", init: function () {
            window.YPlogin = cherry.login, YPlogin.init(), this.getLoginData(), YPlogin.on("login", function () {
                YPlogin.init(), d.getLoginData(), d.getScore(d.getTopScoreDom)
            }), YPlogin.on("logout", function () {
                YPlogin.init(), d.getTopScoreDom(0)
            }), d.getScore(d.getTopScoreDom)
        }, getLoginData: function (a) {
            var b = {};
            if (YPlogin.isLogin()) {
                var b = "qq" == YPlogin.logintype ? {g_tk: ccskey()} : {
                        openid: YPlogin.openid,
                        appid: YPlogin.appid,
                        access_token: YPlogin.access_token,
                        logintype: 1,
                        g_tk: ccskey()
                    };
                b._method = "post" == a ? "put" : null
            }
            return b
        }, getScore: function (a) {
            var b = {};
            YPlogin.isLogin() && (b = this.getLoginData(), b.videoid = parent.coverid || parent.window.COVER_INFO.id, $.ajax({
                type: "get",
                url: "//video.coral.qq.com/filmreview/score",
                data: b,
                dataType: "jsonp",
                jsonpCallback: "getscorecallback",
                cache: !0,
                success: function (b) {
                    0 == b.errCode && a(b.data.score / 2)
                }
            }))
        }, postScore: function (a, b) {
            var c = "//video.coral.qq.com/filmreview/score";
            d.submitForm(c, a, this.postCallback)
        }, postCallback: function (a) {
            0 == a.errCode ? $(".score-result").html("评分成功").removeClass("fault").addClass("success") : 12 == a.errCode ? $(".score-result").html("请不要频繁修改评分").removeClass("success").addClass("fault") : $(".score-result").html("评分失败").removeClass("success").addClass("fault"), setTimeout(function () {
                $(".score-result").html("")
            }, 2e3)
        }, submitForm: function (a, b, c) {
            if (!(b && "object" != typeof b || c && "function" != typeof c)) {
                var d, e, f = "coral-post";
                document.domain = "qq.com", $("#coral-post").length || $("body").append('<iframe id="coral-post" name="coral-post" style="display:none"><script type="text/javascript">document.domain = "qq.com";</script></iframe>'), d = $("#coral-form").length ? $("#coral-form").attr("action", a).empty() : $('<form action="' + a + '" method="post" target="' + f + '" id="coral-form"></form>', {display: "none"}).appendTo($("body"));
                for (e in b)d.append($('<input name="' + e + '" type="hidden" value="" />').val(b[e]));
                d.submit()
            }
        }, bindEvent: function () {
            var a = this;
            $("#mainBody").delegate(".rate-score .score", "click", function () {
                if (YPlogin.isLogin()) {
                    $(this).addClass("scored"), $(this).prevAll(".score").addClass("scored"), $(this).nextAll(".score").removeClass("scored");
                    var b = $(this).parent().find(".scored").length;
                    $(".score-level").html(d.setScoreLevel(b));
                    var c = a.getLoginData("post");
                    c.score = 2 * b, c.videoid = parent.window.COVER_INFO.id || parent.coverid, c.format = "SCRIPT", c.callback = "parent.postScoreCallback", d.postScore(c)
                } else YPlogin.doLogin(a.init())
            }), $("#mainBody").delegate(".rate-score .score", "mouseover", function () {
                $(this).addClass("hoveractive"), $(this).prevAll(".score").addClass("hoveractive"), $(this).nextAll(".score").removeClass("hoveractive");
                var a = $(this).parent().find(".hoveractive").length;
                $(".score-level").html(d.setScoreLevel(a))
            }), $("#mainBody").delegate(".rate-score", "mouseout", function () {
                $($(this).find("a")).removeClass("hoveractive");
                var a = $(this).parent().find(".scored").length;
                $(".score-level").html(d.setScoreLevel(a))
            })
        }, getScoreDom: function (a) {
            scoreHtml = '<div class="user-score">';
            var b;
            if (a > 0)for (b = 1; b <= 5; b++)b <= a ? scoreHtml += '<a href="javascript:;" class="score score' + b + ' scored" hidefocus="true"></a>' : scoreHtml += '<a href="javascript:;" class="score score' + b + '" hidefocus="true"></a>';
            return scoreHtml += "</div>", scoreHtml
        }, getTopScoreDom: function (a) {
            scoreHtml = "";
            var b;
            for (b = 1; b <= 5; b++)b <= a ? scoreHtml += '<a href="javascript:;" class="score score' + b + ' scored" hidefocus="true"></a>' : scoreHtml += '<a href="javascript:;" class="score score' + b + '" hidefocus="true"></a>';
            $(".rate-score").html(scoreHtml), $(".score-level").html(d.setScoreLevel(a))
        }, setScoreLevel: function (a) {
            var b = "";
            switch (a) {
                case 1:
                    b = "很差";
                    break;
                case 2:
                    b = "较差";
                    break;
                case 3:
                    b = "还行";
                    break;
                case 4:
                    b = "推荐";
                    break;
                case 5:
                    b = "力荐"
            }
            return b
        }
    };
    ("undefined" != typeof parent.window.COVER_INFO && "undefined" != typeof parent.COVER_INFO.movie_comment_set && 1047775 !== parent.COVER_INFO.movie_comment_set && "1047775" !== parent.COVER_INFO.movie_comment_set && "undefined" != typeof parent.window.COVER_INFO.id || "undefined" != typeof parent.coverid) && (d.init(), d.bindEvent()), c.exports = d
}), define("coral_yp_slim", function (a, b, c) {
    var d = d || parent.cmt_id, e = parent.window.COVER_INFO.id, f = a("coral.base"), g = a("coral.dom"), h = a("coral.login"), i = function (a, b) {
        var c = '<div class="alert-tip" ><img src="//mats.gtimg.com/v/coral_yp_2015_v3.0/ueditor-resource/themes/default/images/insertPhoto_triangle.png"><span style="margin-right:0px;" >' + b + "</span>";
        a.append(c), setTimeout(function () {
            a.find(".alert-tip").remove()
        }, 1e3)
    }, j = "http://video.coral.qq.com/c/" + e + "/review?exit=1", k = {
        options: {title: $("#yp_title"), content: $("#yp_post_text"), postbtn: $("#ypl_post_btn2")}, init: function () {
            if (window.YPlogin = cherry.login, YPlogin.init(), YPlogin.isLogin()) {
                var a = "", b = "", c = "";
                "qq" == YPlogin.logintype ? (a = YPlogin.uin, b = YPlogin.getNick(), c = YPlogin.getAvatar()) : (a = YPlogin.openid || "100000", b = YPlogin.getNick(), c = YPlogin.getAvatar()), h.onLogined(a, b, c)
            }
            YPlogin.on("login", function () {
                YPlogin.init(), h.onLogined(YPlogin.uin, YPlogin.getNick(), YPlogin.getAvatar())
            }), YPlogin.on("logout", function () {
                YPlogin.init(), h.loginOut()
            });
            var d = this;
            spid = parent.window.COVER_INFO.id;
            parent.window.COVER_INFO;
            "undefined" != typeof parent.COVER_INFO.movie_comment_set && 1047775 !== parent.COVER_INFO.movie_comment_set && "1047775" !== parent.COVER_INFO.movie_comment_set && d.loadlist(1), this.bindYpvoteEvent(), $("#yp-speak").attr("href", j).attr("target", "_blank"), "wx" == YPlogin.logintype ? setTimeout(function () {
                    d.initvote()
                }, 500) : d.initvote()
        }, initvote: function () {
            function a(a) {
                var b = parseInt($("#tp_u_n").html()), c = parseInt($("#tp_d_n").html());
                0 == a.code ? ($("#tp_u_n").html(b + 1), $("#tp_u").css("width", (b + 1) / (b + c + 1) * 100 + "%"), $("#tp_d").css("width", c / (b + c + 1) * 100 + "%"), $("#tp_u").data("width", (b + 1) / (b + c + 1) * 100 + "%"), $("#tp_d").data("width", c / (b + c + 1) * 100 + "%"), jQuery("#tp_up_btn a").addClass("hason1"), jQuery("#tp_down_btn a").addClass("hason")) : 20 == a.code && YPlogin.doLogin()
            }

            function b(a) {
                var b = parseInt($("#tp_u_n").html()), c = parseInt($("#tp_d_n").html());
                0 == a.code ? ($("#tp_d_n").html(c + 1), $("#tp_u").css("width", b / (b + c + 1) * 100 + "%"), $("#tp_d").css("width", (c + 1) / (b + c + 1) * 100 + "%"), $("#tp_u").data("width", b / (b + c + 1) * 100 + "%"), $("#tp_d").data("width", (c + 1) / (b + c + 1) * 100 + "%"), jQuery("#tp_down_btn a").addClass("hason1"), jQuery("#tp_up_btn a").addClass("hason")) : 20 == a.code && YPlogin.doLogin()
            }

            var c = c || parent.cmt_id;
            $("#tp_up_btn a").removeClass("hason"), $("#tp_down_btn a").removeClass("hason"), $("#tp_up_btn a").removeClass("hason1"), $("#tp_down_btn a").removeClass("hason1");
            var d = "";
            YPlogin.init(), d = "wx" == YPlogin.logintype ? "//coral.qq.com/article/" + c + "/voteinfo?logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid : "//coral.qq.com/article/" + c + "/voteinfo?logintype=0", $.ajax({
                type: "GET",
                url: d,
                dataType: "jsonp",
                success: function (a) {
                    if (0 == a.errCode && a.data && 0 != a.data.length) {
                        $("#coral_tp").show();
                        var b = a.data.subject[0];
                        if (window.vvid = a.data.voteid, window.ssid = b.option[0].subjectid, 0 == b.option[0].percent && 0 == b.option[1].percent ? ($("#tp_u").css("width", "50%"), $("#tp_d").css("width", "50%"), $("#tp_u").data("width", "50%"), $("#tp_d").data("width", "50%")) : ($("#tp_u").css("width", b.option[0].percent + "%"), $("#tp_d").css("width", b.option[1].percent + "%"), $("#tp_u").data("width", b.option[0].percent + "%"), $("#tp_d").data("width", b.option[1].percent + "%")), $("#tp_u_n").html(b.option[0].selected), $("#tp_d_n").html(b.option[1].selected), $("#tp_up_btn").data("data_oid", b.option[0].optionid), $("#tp_down_btn").data("data_oid", b.option[1].optionid), b.option[0].userselect) $("#tp_up_btn a").addClass("hason1"), $("#tp_down_btn a").addClass("hason"); else {
                            if (!b.option[1].userselect)return;
                            $("#tp_up_btn a").addClass("hason"), $("#tp_down_btn a").addClass("hason1")
                        }
                    }
                }
            });
            var e = function (a, b, c) {
                window.callback = c, b.format = "SCRIPT", b.callback = "parent.callback", "wx" == YPlogin.logintype && (b.login = 2, b.openid = YPlogin.openid, b.access_token = YPlogin.access_token, b.appid = YPlogin.appid);
                var d = "post_iframe";
                $("#post_iframe").length || $("body").append('<iframe id="post_iframe" name="post_iframe" style="display:none"></iframe>');
                var e = $("#_messageform").length ? $("#_messageform").attr("action", a).empty() : $('<form action="' + a + '" method="post" target="' + d + '" id="_messageform" style="display:none;"></form>').appendTo($("body"));
                for (name in b)e.append($('<input name="' + name + '" type="hidden" value="" />').val(b[name]));
                e.submit()
            }, f = function (a, b, c, d) {
                var f = "";
                f = "wx" == YPlogin.logintype ? "//panshi.qq.com/v2/vote/" + a + "/submit?source=1&login=2" : "//panshi.qq.com/v2/vote/" + a + "/submit?source=1&login=1";
                var g = {};
                g[b] = {selected: [c]};
                var h = {answer: JSON.stringify(g)};
                e(f, h, d)
            };
            $("#tp_up_btn").bind("click", function () {
                YPlogin.isLogin() ? $(this).find("a").hasClass("hason1") || $(this).find("a").hasClass("hason") || f(vvid, ssid, $(this).data("data_oid"), a) : YPlogin.doLogin()
            }), $("#tp_down_btn").bind("click", function () {
                YPlogin.isLogin() ? $(this).find("a").hasClass("hason1") || $(this).find("a").hasClass("hason") || f(vvid, ssid, $(this).data("data_oid"), b) : YPlogin.doLogin()
            })
        }, loadlist: function (a, b, c) {
            var d = "upcomment", h = "", i = 0;
            h = b ? b : "", c && (d = c);
            var j = "//video.coral.qq.com/filmreviewr/c/" + d + "/" + e + "?";
            j += YPlogin.isLogin() && "wx" == YPlogin.logintype ? "code=0&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid + "&" : "", $.ajax({
                url: j + "reqnum=" + a + "&commentid=" + h,
                dataType: "jsonp",
                success: function (b) {
                    if (0 == b.errCode) {
                        if (0 == b.data.commentid.length) $("#yp").css("display", "none"); else {
                            i = a > b.data.commentid.length ? b.data.commentid.length : a;
                            for (var c = 0; c < i; c++)1 == i && void 0 == g.creatHtml(b.data.commentid[c], 0, "yp") ? $("#yp").hide() : ($("#yp").show(), $("#yp-list").append(g.creatHtml(b.data.commentid[c], 0, "yp")), $(".ypbtt .wechat").css("display", "none"));
                            var d = $(".yp-post:nth-child(" + i + ")");
                            $(d).css("border-bottom", "none")
                        }
                        b.data.hasnext && ($("#moreyp").show(), $("#moreyp").bind("click", function () {
                            window.parent.open("http://video.coral.qq.com/c/" + e + "/review")
                        })), $("#hotComments .np-post").removeClass("np-label-digest"), setTimeout(function () {
                            f.IframeHeight()
                        }, 50)
                    }
                    f.ConHeight(7, 5)
                }
            })
        }, bindYpvoteEvent: function () {
            this.options;
            $("#yp-list").delegate(".ypvote", "click", function (a) {
                $(this);
                if (YPlogin.isLogin()) {
                    if ($(this).hasClass("np-btn-active") || $(this).hasClass("no-upvote"))return !1;
                    if ($.cookie("uid") == $(this).parent().parent().find(".np-user").attr("post_uid"))return i($(this), "自己不能顶自己"), !1;
                    var b = $(this).attr("id").split("_")[1], c = "//video.coral.qq.com/filmreview/up/to/" + b + "?coverid=" + parent.window.COVER_INFO.id;
                    "wx" == YPlogin.logintype && (c = "//video.coral.qq.com/article/comment/up/to/" + b + "?coverid=" + parent.window.COVER_INFO.id + "&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid), $.ajax({
                        url: c,
                        dataType: "jsonp",
                        success: function (a) {
                            if (0 == a.errCode) {
                                b = "#upvote_" + a.data.commentid;
                                var c = $(b).find("em").html(), d = parseInt(c) + 1;
                                $(b).find("em").html(d), $(b).addClass("np-btn-active"), $(this).siblings(".ycpvote").addClass("no-cpvote")
                            }
                        }
                    })
                } else YPlogin.doLogin();
                a.stopPropagation()
            }), $("#yp-list").delegate(".ycpvote", "click", function (a) {
                $(this);
                if (YPlogin.isLogin()) {
                    if ($(this).hasClass("np-btn-cactive") || $(this).hasClass("no-cpvote"))return !1;
                    if ($.cookie("uid") == $(this).parent().parent().find(".np-user").attr("post_uid"))return i($(this), "自己不能踩自己"), !1;
                    var b = $(this).attr("id").split("_")[1], c = "//video.coral.qq.com/filmreview/up/to/" + b + "?coverid=" + parent.window.COVER_INFO.id + "&uptype=1";
                    if ("wx" == YPlogin.logintype) {
                        var d = "&code=0&logintype=1&openid=" + YPlogin.openid + "&access_token=" + YPlogin.access_token + "&appid=" + YPlogin.appid;
                        c += d
                    }
                    $.ajax({
                        url: c, dataType: "jsonp", success: function (a) {
                        }
                    });
                    var e = $(this).find("em").html(), f = parseInt(e) + 1;
                    $(this).find("em").html(f), $(this).addClass("np-btn-cactive"), $(this).siblings(".ypvote").addClass("no-upvote")
                } else YPlogin.doLogin();
                a.stopPropagation()
            }), $("#yp-list").delegate(".popClick", "click", function () {
                event.stopPropagation();
                var a = ({uid: $(this).attr("post_uid")}, $(this).attr("post_uid"));
                window.parent.open("http://video.coral.qq.com/review/user/" + a)
            }), $("#yp-list").delegate(".reply", "click", function (a) {
                var b = parent.window.COVER_INFO.id, c = $(this).parents("li.np-post").attr("id").split("_")[1];
                window.parent.open("http://video.coral.qq.com/review/c/" + b + "/" + c)
            }), $("#yp-list").delegate(".ypbtt", "click", function (a) {
                if (!$(this).hasClass("wechattitle")) {
                    var b = parent.window.COVER_INFO.id || parent.coverid || coverid, c = $(this).parents("li.np-post").attr("id").split("_")[1];
                    window.parent.open("http://video.coral.qq.com/review/c/" + b + "/" + c)
                }
            }), $("#yp-list").delegate(".np-btn-share", "click", function (a) {
                setTimeout(function () {
                    f.IframeHeight()
                }, 50)
            }), $("#morepl").bind("click", function () {
                0 !== $(this).parent().find("#newComments li").length ? window.parent.open("http://video.coral.qq.com/s/" + d + "/review#new") : window.parent.open("http://video.coral.qq.com/s/" + d + "/review#hot")
            })
        }
    };
    c.exports = k
}), "undefined" == typeof CORAL_BOSS && (CORAL_BOSS = function (a) {
    var b = {
        BOSSID: "3204", getPageId: function () {
            var a = window.location.href;
            return a.match("coralComment_yp_1.0") ? "rk" : a.match("coralCommentNew4.0") ? "zp" : a.match("iframe2") ? parent.location.href.match("exit=1") ? "yl_edit" : "yl" : a.match("iframe3") || a.match("iframe4") ? "yd" : a.match("iframe5") && parent.location.href.match("#hot") ? "dl_hot" : a.match("iframe5") && parent.location.href.match("#new") ? "dl_new" : a.match("review/d/") ? "dd" : a.match("dzps.htm") || a.match("7thart") ? "7thart" : a.match("video.coral.qq.com/review/user/") ? "0" == a.split("user/")[1] ? "grzx_owner" : "grzx_vistor" : a.match("yingping.qq.com") ? a.match("review/detail") ? "dyrk" : "gc_index" : void 0
        }, getPageInfo: function () {
            return b.getPageId().split("_")[0]
        }, sendUserBehav: function (a, b) {
            var c = location.protocol + "//" + location.host + location.pathname, d = 2, b = b || null, e = null, f = null, g = window.videoid || top.window.coverid || null, h = window.commenttargetid || top.window.cmt_id || null;
            sCommentid = top.window.c_id || top.window.commentid || null, "undefined" != typeof cherry && cherry.login.uin !== !1 && (e = cherry.login.uin), "undefined" != typeof cherry && cherry.login.openid !== !1 && (f = cherry.login.openid), e ? d = 0 : f && (d = 1);
            var i = new Image(1, 1);
            i.src = "//btrace.video.qq.com/kvcollect?BossId=" + this.BOSSID + "&Pwd=1644177165&iUserType=" + d + "&sQQ=" + e + "&sWeChat=" + f + "&sUrl=" + c + "&sPageId=" + b + "&sOp=" + a + "&sCoverid=" + g + "&sRef=&sTargetid=" + h + "&sCommentid=" + sCommentid + "&iCommentType=&_dc=" + Math.random()
        }, shareBoss: function () {
            var c = this;
            a(".np-comment-list").on("click", ".mod_share_list .item", function (d) {
                var e = a(this).find("a").attr("tid"), f = "", g = c.getPageId().split("_")[0];
                switch (e) {
                    case"wechat":
                        f = "sharewx";
                        break;
                    case"qq":
                        f = "shareqq";
                        break;
                    case"qzone":
                        f = "shareqzone";
                        break;
                    case"sinaweibo":
                        f = "sharesinaweibo"
                }
                f = f + "_" + g, b.sendUserBehav(f)
            })
        }, replyBoss: function () {
            var c = this;
            a(".np-comment-list").delegate(".reply, .replyAndchild", "click", function (d) {
                var e = a(this).parent().parent().parent().parent().parent()[0];
                if ("rk" == c.getPageId()) {
                    var f = a(this).parent().parent().parent()[0];
                    "yp_box" == a(e).attr("id") ? b.sendUserBehav("reply_rk_review") : a(f).hasClass("topAll") ? b.sendUserBehav("reply_rk_hot") : b.sendUserBehav("reply_rk_new")
                } else"zp" == c.getPageId() ? "yp" == a(e).attr("id") ? b.sendUserBehav("reply_" + c.getPageInfo() + "_review") : "hotComments" == a(this).parent().parent().parent().parent().attr("id") ? b.sendUserBehav("reply_" + c.getPageInfo() + "_hot") : b.sendUserBehav("reply_" + c.getPageInfo() + "_new") : b.sendUserBehav("reply_" + c.getPageInfo())
            })
        }, upvoteBoss: function () {
            var c = this;
            a(".np-comment-list").delegate(".upvote,.ypvote", "click", function (d) {
                if (!a(this).hasClass("np-btn-active")) {
                    var e = a(this).parent().parent().parent().parent().parent()[0];
                    if ("rk" == c.getPageId()) {
                        var f = a(this).parent().parent().parent()[0];
                        "yp_box" == a(e).attr("id") ? b.sendUserBehav("upvote_rk_review") : a(f).hasClass("topAll") ? b.sendUserBehav("upvote_rk_hot") : b.sendUserBehav("upvote_rk_new")
                    } else"zp" == c.getPageId() ? "yp" == a(e).attr("id") ? b.sendUserBehav("upvote_" + c.getPageInfo() + "_review") : "hotComments" == a(this).parent().parent().parent().parent().attr("id") ? b.sendUserBehav("upvote_" + c.getPageInfo() + "_hot") : b.sendUserBehav("upvote_" + c.getPageInfo() + "_new") : b.sendUserBehav("upvote_" + c.getPageInfo())
                }
            })
        }, cpvoteBoss: function () {
            var c = this;
            a(".np-comment-list").delegate(".cpvote,.ycpvote", "click", function (d) {
                if (!a(this).hasClass("np-btn-cactive")) {
                    var e = a(this).parent().parent().parent().parent().parent()[0];
                    if ("rk" == c.getPageId()) {
                        var f = a(this).parent().parent().parent()[0];
                        "yp_box" == a(e).attr("id") ? b.sendUserBehav("cpvote_rk_review") : a(f).hasClass("topAll") ? b.sendUserBehav("cpvote_rk_hot") : b.sendUserBehav("cpvote_rk_new")
                    } else"zp" == c.getPageId() ? "yp" == a(e).attr("id") ? b.sendUserBehav("cpvote_" + c.getPageInfo() + "_review") : "hotComments" == a(this).parent().parent().parent().parent().attr("id") ? b.sendUserBehav("cpvote_" + c.getPageInfo() + "_hot") : b.sendUserBehav("cpvote_" + c.getPageInfo() + "_new") : b.sendUserBehav("cpvote_" + c.getPageInfo())
                }
            })
        }, loadmoreBoss: function () {
            var c = this;
            a("#mainBody").delegate(".np-load-more", "click", function (d) {
                "rk" == c.getPageId() ? "yp_box" == a(this).parent().attr("id") ? b.sendUserBehav("loadmore_rk_review") : "allComments" == a(this).prev().attr("id") ? b.sendUserBehav("loadmore_rk_new") : b.sendUserBehav("loadmore_rk_hot") : "zp" == c.getPageId() ? "moreyp" == a(this).attr("id") ? b.sendUserBehav("loadmore_" + c.getPageInfo() + "_review") : 0 !== a(this).parent().find("#hotComments li").length ? b.sendUserBehav("loadmore_" + c.getPageInfo() + "_hot") : b.sendUserBehav("loadmore_" + c.getPageInfo() + "_new") : b.sendUserBehav("loadmore_" + c.getPageInfo())
            })
        }, reportBoss: function () {
            a("#mainBody").on("click", ".report", function (a) {
                CORAL_BOSS.sendUserBehav("report_all")
            })
        }, loadBoss: function () {
            "rk" !== this.getPageId() && "zp" !== this.getPageId() && CORAL_BOSS.sendUserBehav(null, "load_" + this.getPageId())
        }, enterGCBoss: function () {
            a(parent.document).delegate(".enter-title a,.enter-main-img-div,.enter-main-name", "click", function (a) {
                CORAL_BOSS.sendUserBehav("gcrkRight_all")
            }), a(parent.document).delegate(".enter-main-body a,.enter-main-footer a", "click", function (a) {
                CORAL_BOSS.sendUserBehav("sidebar_to_dc")
            }), a("#mainBody").delegate("#yplink", "click", function (a) {
                CORAL_BOSS.sendUserBehav("gcrk_rk")
            })
        }, lookFullReviewBoss: function () {
            a("#mainBody").delegate(".shows_btn,.shows-btn", "click", function (b) {
                "展开" == a(this).attr("title") || a(this).hasClass("hide") && CORAL_BOSS.sendUserBehav("lookFullReview_" + CORAL_BOSS.getPageInfo())
            })
        }
    };
    return b
}(jQuery)), "undefined" != typeof CORAL_BOSS && function (a) {
    function b() {
        a("#mainBody").delegate("#top_post_btn", "click", function () {
            "" != a("#yptop_title").val() && CORAL_BOSS.sendUserBehav("topCommentTextarea_rk")
        }), a("#mainBody").delegate("#hottitle_list", "click", function (a) {
            CORAL_BOSS.sendUserBehav("write_rk_hot")
        }), a("#mainBody").delegate("#newtitle_list", "click", function (a) {
            CORAL_BOSS.sendUserBehav("write_rk_new")
        }), a("#mainBody").delegate("#newtitle_list2", "click", function (a) {
            CORAL_BOSS.sendUserBehav("write_rk_new")
        }), a("#mainBody").delegate("#yp_btn", "click", function (a) {
            CORAL_BOSS.sendUserBehav("writeReview_rk")
        }), a("#mainBody").delegate("#yp_write, #yp_first", "click", function (a) {
            CORAL_BOSS.sendUserBehav("writeDepthReview_rk")
        }), CORAL_BOSS.shareBoss(), CORAL_BOSS.replyBoss(), CORAL_BOSS.upvoteBoss(), CORAL_BOSS.cpvoteBoss(), CORAL_BOSS.loadmoreBoss(), CORAL_BOSS.reportBoss(), CORAL_BOSS.lookFullReviewBoss()
    }

    function c() {
        a("#mainBody").on("click", "#yp-speak", function (a) {
            CORAL_BOSS.sendUserBehav("writeReview_zp")
        }), a("#mainBody").on("click", "#hottitle .to-write", function (a) {
            CORAL_BOSS.sendUserBehav("write_zp_hot")
        }), a("#mainBody").on("click", "#newtitle .to-write", function (a) {
            CORAL_BOSS.sendUserBehav("write_zp_new")
        }), CORAL_BOSS.shareBoss(), CORAL_BOSS.replyBoss(), CORAL_BOSS.upvoteBoss(), CORAL_BOSS.cpvoteBoss(), CORAL_BOSS.loadmoreBoss(), CORAL_BOSS.reportBoss()
    }

    function d() {
        a("#mainBody").delegate("#yp_post_btn1", "click", function (a) {
            CORAL_BOSS.sendUserBehav("activeButton_yl")
        }), a("#mainBody").delegate("#yp_title", "click", function (a) {
            CORAL_BOSS.sendUserBehav("activeButton_yl")
        }), CORAL_BOSS.shareBoss(), CORAL_BOSS.replyBoss(), CORAL_BOSS.upvoteBoss(), CORAL_BOSS.cpvoteBoss(), CORAL_BOSS.loadmoreBoss(), CORAL_BOSS.enterGCBoss(), CORAL_BOSS.lookFullReviewBoss()
    }

    function e() {
        a("#mainBody").delegate(".np-btn-update", "click", function (a) {
            CORAL_BOSS.sendUserBehav("editReview_yd")
        }), CORAL_BOSS.shareBoss(), CORAL_BOSS.replyBoss(), CORAL_BOSS.upvoteBoss(), CORAL_BOSS.cpvoteBoss(), CORAL_BOSS.loadmoreBoss(), CORAL_BOSS.enterGCBoss()
    }

    function f() {
        CORAL_BOSS.replyBoss(), CORAL_BOSS.upvoteBoss(), CORAL_BOSS.cpvoteBoss(), CORAL_BOSS.loadmoreBoss(), CORAL_BOSS.reportBoss(), CORAL_BOSS.enterGCBoss()
    }

    function g() {
        a(".square-wrap").delegate(".square-tab-more", "click", function (a) {
            CORAL_BOSS.sendUserBehav("loadmore_gc")
        }), a(".square-wrap").delegate(".square-foot-body a", "click", function (a) {
            CORAL_BOSS.sendUserBehav("allActivity_gc")
        }), a(".square-wrap").delegate(".film-hover-ticket", "click", function (a) {
            CORAL_BOSS.sendUserBehav("buyTicket_gc")
        })
    }

    function h() {
        a("#wrapper").delegate(".cover-area .play-btn, .user-area .play-btn", "click", function () {
            CORAL_BOSS.sendUserBehav("videoplay_dyrk")
        }), a("#wrapper").delegate(".user-area .write-review-btn", "click", function () {
            CORAL_BOSS.sendUserBehav("writeDepthReview_dyrk")
        }), a("#wrapper").delegate(".review-section .item-title", "click", function () {
            CORAL_BOSS.sendUserBehav("filmtitle_dyrk")
        }), a("#wrapper").delegate(".review-section .load-more", "click", function () {
            CORAL_BOSS.sendUserBehav("loadmore_dyrk")
        }), CORAL_BOSS.lookFullReviewBoss()
    }

    function i() {
        a("#mainBody").delegate(".mycenter-nav a", "click", function (b) {
            var c = a(this).attr("id").split("-")[1], d = "";
            switch (c) {
                case"remind":
                    d = "messagetTab_grzx";
                    break;
                case"short":
                    d = "commentTab_grzx";
                    break;
                case"film":
                    d = "reviewTab_grzx"
            }
            CORAL_BOSS.sendUserBehav(d)
        }), a("#mainBody").delegate(".np-post-footer a", "click", function (b) {
            switch (a(this).attr("class").split(" ")[1]) {
                case"update":
                    CORAL_BOSS.sendUserBehav("editReview_grzx");
                    break;
                case"delete":
                    CORAL_BOSS.sendUserBehav("deleteReview_grzx")
            }
        })
    }

    var j = (CORAL_BOSS.getPageId(), CORAL_BOSS.getPageInfo());
    switch (CORAL_BOSS.loadBoss(), j) {
        case"rk":
            b();
            break;
        case"zp":
            c();
            break;
        case"yl":
            d();
            break;
        case"yd":
            e();
            break;
        case"dl":
            break;
        case"dd":
            f();
            break;
        case"grzx":
            i();
            break;
        case"gc":
            g();
            break;
        case"dyrk":
            h()
    }
}(jQuery);
/*  |xGv00|2067da43b2cafcb3a718aa8edda39999 */